📄 btnviewcontainer.h
字号:
// BtnViewContainer.h: interface for the CBtnViewContainer class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __BTNVIEWCONTAINER_HH__
#define __BTNVIEWCONTAINER_HH__
#include <coecntrl.h>
#include "BtnCtrl.h"
#include <eiklabel.h>
class CBtnViewContainer :public CCoeControl
{
public:
CBtnViewContainer( );
virtual ~CBtnViewContainer();
static CBtnViewContainer* NewL( const TRect& aRect, const CCoeControl* aParent );
static CBtnViewContainer* NewLC(const TRect& aRect, const CCoeControl* aParent) ;
void ConstructL( const TRect& aRect, const CCoeControl* aParent );
public: //来自于 CCoeControl
TInt CountComponentControls( ) const;
CCoeControl* ComponentControl( TInt aIndex ) const;
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType );
protected:
void Draw( const TRect& aRect ) const ;
void SizeChanged( ) ;
private: //来自于 CCoeControl
void LayoutControls( ) ;
private:
void InitControlsL( ) ;
private: //私有数据
CBtnCtrl * igBtn[3] ;
TInt inCurrBtn ; //当前焦点的按钮
// CEikLabel * iLabel1 ;
enum TControls{ EBtnUp=0, EBtnDown ,EBtnView, ELastControl } ;
};
#endif // !defined(AFX_BTNVIEWCONTAINER_H__7BDB0876_3CF0_439E_9E63_3933AEF22950__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -