emptycontainer.h
来自「Symbian 第三版的一个传统应用程序构架的例子。Container容器为其构」· C头文件 代码 · 共 51 行
H
51 行
#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 + =
减小字号Ctrl + -
显示快捷键?