📄 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 + -