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

📄 titlepanecontainer1.cpp

📁 symbian 2。0平台上TILTE PAN控件的使用方法
💻 CPP
字号:
/**
* 
* @brief Definition of CTitlePaneContainer1
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDES

//  Class include
#include "TitlePaneContainer1.h"

// System includes

// CONSTANTS

// ================= MEMBER FUNCTIONS =======================

/**
* Symbian OS 2 phase constructor.
* Constructs the CTitlePaneContainer1 using the NewLC method, popping
* the constructed object from the CleanupStack before returning it.
* 
* @param aRect The rectangle for this window
* @return The newly constructed CTitlePaneContainer1
*/
CTitlePaneContainer1* CTitlePaneContainer1::NewL(const TRect& aRect)
	{
	CTitlePaneContainer1* self = CTitlePaneContainer1::NewLC(aRect);
	CleanupStack::Pop(self);
	return self;
	}

/**
* Symbian OS 2 phase constructor.
* Constructs the CTitlePaneContainer1 using the constructor and ConstructL 
* method, leaving the constructed object on the CleanupStack before returning it.
* 
* @param aRect The rectangle for this window
* @return The newly constructed CTitlePaneContainer1
*/
CTitlePaneContainer1* CTitlePaneContainer1::NewLC(const TRect& aRect)
	{
	CTitlePaneContainer1* self = new (ELeave) CTitlePaneContainer1;
	CleanupStack::PushL(self);
	self->ConstructL(aRect);
	return self;
	}

/**
* Symbian OS 2nd phase constructor.  Creates a Window for the controls, which it contains.
* Constructs a label and adds it to the window, which it then activates.
* @param aRect The rectangle for this window
*/ 
void CTitlePaneContainer1::ConstructL(const TRect& aRect)
	{
	CreateWindowL();
	
	SetRect(aRect);
	ActivateL();
	}


/** 
* Destructor.  Frees up memory for the iLabel.
*/
CTitlePaneContainer1::~CTitlePaneContainer1()
	{
	}

/**
* Called by the framework to draw this control.  Clears the area in 
* aRect.
* @param aRect in which to draw
*/
void CTitlePaneContainer1::Draw(const TRect& aRect) const
	{
	CWindowGc& gc = SystemGc();
	gc.Clear(aRect);
	}

// End of File

⌨️ 快捷键说明

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