compoundcontrol.h
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 61 行
H
61 行
#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 + =
减小字号Ctrl + -
显示快捷键?