chinesedisplaycontainer.h
来自「This C++ application demonstrates how to」· C头文件 代码 · 共 83 行
H
83 行
/*
* ============================================================================
* Name : CChineseDisplayContainer from ChineseDisplayContainer.h
* Part of : ChineseDisplay
* Created : 18.3.2003 by Forum Nokia
* Implementation notes:
* Version :
* Copyright: Nokia Corporation. 2003
* ============================================================================
*/
#ifndef __CHINESE_DISPLAY_CONTAINER_H__
#define __CHINESE_DISPLAY_CONTAINER_H__
// INCLUDES
#include <coecntrl.h>
// FORWARD DECLARATIONS
class CEikLabel; // for example labels
const TInt KMaxStringLength = 50;
// CLASS DECLARATION
/**
* CChineseDisplayContainer container control class.
*
*/
class CChineseDisplayContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
~CChineseDisplayContainer();
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
/**
* From ?base_class ?member_description
*/
// event handling section
// e.g Listbox events
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
void GetHelpContext( TCoeHelpContext& aContext ) const;
private: //data
TBuf<100> iHelloText;
HBufC* iInfoText;
CEikLabel* iLabel; // example label
};
#endif // __CHINESE_DISPLAY_CONTAINER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?