mylistboxdocument.cpp
来自「symbian界面设计.关于LISTBOX的经典的例子,适合所有初学者和爱好SY」· C++ 代码 · 共 89 行
CPP
89 行
/*
============================================================================
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 + =
减小字号Ctrl + -
显示快捷键?