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

📄 confirmationnotecontainer.cpp

📁 最新官方例子,图形,描述副,基本控件,通讯协议,等等,
💻 CPP
字号:
/**
* 
* @brief Definition of CConfirmationNoteContainer
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDE FILES

// Class include
#include "aknnotedialog.h"
#include "ConfirmationNoteContainer.h"

// System includes
#include <confirmationnote.rsg>

// CONSTANTS

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

/**
* 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 CConfirmationNoteContainer::ConstructL(const TRect& aRect)
	{
	CreateWindowL();
	CAknNoteDialog* note = new (ELeave) CAknNoteDialog (CAknNoteDialog::EConfirmationTone, 
														CAknNoteDialog::EShortTimeout);
	note->PrepareLC(R_CONFIRMATIONNOTE_LOADED_GAMES_NOTE);
	TInt numberOfLoadedGames = LoadGames();
	note->SetTextPluralityL (numberOfLoadedGames > 1);
	note->SetTextNumberL (numberOfLoadedGames);
	note->RunLD();
	
	SetRect(aRect);
	ActivateL();
	}

/**
* Symbian OS 2 phase constructor.
* Constructs the CConfirmationNoteContainer 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 CConfirmationNoteContainer
*/
CConfirmationNoteContainer* CConfirmationNoteContainer::NewL(const TRect& aRect)
	{
	CConfirmationNoteContainer* self = CConfirmationNoteContainer::NewLC(aRect);
	CleanupStack::Pop(self);
	return self;
	}

/**
* Symbian OS 2 phase constructor.
* Constructs the CConfirmationNoteContainer 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 CConfirmationNoteContainer
*/
CConfirmationNoteContainer* CConfirmationNoteContainer::NewLC(const TRect& aRect)
	{
	CConfirmationNoteContainer* self = new (ELeave) CConfirmationNoteContainer;
	CleanupStack::PushL(self);
	self->ConstructL(aRect);
	return self;
	}
/**
* Called by the framework to draw this control.  Clears the area in 
* aRect.
* @param aRect in which to draw
*/
void CConfirmationNoteContainer::Draw(const TRect& aRect) const
	{
	CWindowGc& gc = SystemGc();
	gc.Clear(aRect);
	}


//End of File	

⌨️ 快捷键说明

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