myviews.h
来自「一个uiq界面设计的例子~~」· C头文件 代码 · 共 92 行
H
92 行
#ifndef MYVIEWS_H
#define MYVIEWS_H
#include "coecntrl.h"
#include "coeview.h"
//const TUid KUidMyApp = { 0x101F60FD };
const TUid KUidMyAppViewOne = {0x01};
const TUid KUidMyAppViewTwo = {0x02};
class CEikLabel;
class CMyViewOne : public CCoeControl, public MCoeView
{
public:
CMyViewOne();
~CMyViewOne();
public:
void SizeChanged();
void ConstructL(const TRect& aRect);
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
public:
// MCoeView
virtual void ViewDeactivated();
virtual void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
virtual TVwsViewId ViewId() const;
private: //data
CEikLabel* iLabel; // example label
};
class CMyViewTwo : public CCoeControl, public MCoeView
{
public:
CMyViewTwo();
~CMyViewTwo();
public:
void SizeChanged();
void ConstructL(const TRect& aRect);
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
public:
// MCoeView
virtual void ViewDeactivated();
virtual void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
virtual TVwsViewId ViewId() const;
virtual void ViewConstructL();
private: //data
CEikLabel* iLabel; // example label
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?