⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compoundcontrol.h

📁 s60源码
💻 H
字号:
#ifndef __COMPOUNDCONTROL_H__
#define __COMPOUNDCONTROL_H__

// INCLUDES

#include <coecntrl.h>	// CCoeControl

// FORWARD DECLARATIONS
class CSimpleControl;

// CLASS DECLARATION

/**
*
* @class	CCompoundControl CompoundControl.h 
* @brief	This is a container class for a Hello World example based on the 
* Series 60 view switching architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version	1.0
* 
*/
class CCompoundControl : public CCoeControl
	{
public: // constructors and destructor
	static CCompoundControl* NewL(const TRect& aRect, const CCoeControl* aParent);
	static CCompoundControl* NewLC(const TRect& aRect, const CCoeControl* aParent);
	~CCompoundControl();

private: // constructor
	void ConstructL(const TRect& aRect, const CCoeControl* aParent);

private: // from CoeControl
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;
	void SizeChanged();

private:
    void CalculateRects();

private: // data
	CSimpleControl* iTop;
	CSimpleControl* iBottom;

    TRect iTopRect;
    TRect iBottomRect;

private: // member enum
    enum TComponentControls
        {
        ETop = 0,
        EBottom,
        ENumberOfControls
        };
	};

#endif	// __COMPOUNDCONTROL_H__

// End of File

⌨️ 快捷键说明

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