ecomexamplecontainer.h

来自「最新官方例子,图形,描述副,基本控件,通讯协议,等等,」· C头文件 代码 · 共 56 行

H
56
字号
#ifndef ECOMEXAMPLECONTAINER_H
#define ECOMEXAMPLECONTAINER_H

// INCLUDES

// System includes
#include <coecntrl.h> // CCoeControl

// FORWARD DECLARATIONS
class CEikLabel;
class CShape;

// CLASS DECLARATION

/**
*
* @class	CEComExampleContainer EComExampleContainer.h
* @brief	This is the container class for a ECom client based on the
* standard Symbian OS architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version	1.0
*
*/
class CEComExampleContainer : public CCoeControl
	{
public: // Constructors and destructor

	static CEComExampleContainer* NewL(const TRect& aRect);
	static CEComExampleContainer* NewLC(const TRect& aRect);
	~CEComExampleContainer();
	void DrawCircleL();
	void DrawRectangleL();

private:

	void ConstructL(const TRect& aRect);


private: // from CoeControl

	void SizeChanged();
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;

private: //data

	CEikLabel*	iLabel;			// example label
	CShape*		iShape;
	};

#endif	// #ifndef ECOMEXAMPLECONTAINER_H

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?