?? emptycontainer.h
字號:
#ifndef __EMPTY_CONTAINER_H_
#define __EMPTY_CONTAINER_H_
#include <coecntrl.h>
class CEikLabeL;
const TInt KMaxStringLength = 50;
class CEmptyContainer : public CCoeControl, MCoeControlObserver
{
public:
void ConstructL(const TRect& aRect);
virtual ~CEmptyContainer();
private:
void SizeChanged();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
//上邊四個函數是必須重寫的函數
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
void GetHelpContext( TCoeHelpContext& aContext ) const;
private:
TBuf<100> iHelloText;
HBufC* iInfoText;
CEikLabel* iLabel;
};
class CEmptyContainer2 : public CCoeControl, MCoeControlObserver
{
public:
void ConstructL(const TRect& aRect,CEmptyContainer2* iAppContainer2);
virtual ~CEmptyContainer2();
private:
void SizeChanged();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
//上邊四個函數是必須重寫的函數
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
void GetHelpContext( TCoeHelpContext& aContext ) const;
private:
TBuf<100> iHelloText2;
HBufC* iInfoText2;
CEikLabel* iLabel2;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -