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

📄 mylistboxdocument.cpp

📁 symbian界面设计.关于LISTBOX的经典的例子,适合所有初学者和爱好SYMBIAN的工程师
💻 CPP
字号:
/*
============================================================================
 Name		: MyListBoxDocument.cpp
 Author	  : davey
 Copyright   : It is a software by davey
 Description : CMyListBoxDocument implementation
============================================================================
*/


// INCLUDE FILES
#include "MyListBoxAppUi.h"
#include "MyListBoxDocument.h"

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

// -----------------------------------------------------------------------------
// CMyListBoxDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMyListBoxDocument* CMyListBoxDocument::NewL( CEikApplication& aApp )
	{
	CMyListBoxDocument* self = NewLC( aApp );
	CleanupStack::Pop( self );
	return self;
	}

// -----------------------------------------------------------------------------
// CMyListBoxDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMyListBoxDocument* CMyListBoxDocument::NewLC( CEikApplication& aApp )
	{
	CMyListBoxDocument* self =
		new ( ELeave ) CMyListBoxDocument( aApp );

	CleanupStack::PushL( self );
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CMyListBoxDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMyListBoxDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CMyListBoxDocument::CMyListBoxDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CMyListBoxDocument::CMyListBoxDocument( CEikApplication& aApp )
	: CAknDocument( aApp )
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CMyListBoxDocument::~CMyListBoxDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CMyListBoxDocument::~CMyListBoxDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CMyListBoxDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CMyListBoxDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return ( static_cast <CEikAppUi*> ( new ( ELeave )
										CMyListBoxAppUi ) );
	}

// End of File

⌨️ 快捷键说明

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