userlistboxdocument.cpp

来自「symbian s60 2th 自定义ListBox」· C++ 代码 · 共 44 行

CPP
44
字号
/* Copyright (c) 2009, Nokia. All rights reserved */

#include "UserListboxAppUi.h"
#include "UserListboxDocument.h"


CUserListboxDocument* CUserListboxDocument::NewL(CEikApplication& aApp)
    {
    CUserListboxDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

CUserListboxDocument* CUserListboxDocument::NewLC(CEikApplication& aApp)
    {
    CUserListboxDocument* self = new (ELeave) CUserListboxDocument(aApp);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

void CUserListboxDocument::ConstructL()
    {
    // Add any construction that can leave here
    }    

CUserListboxDocument::CUserListboxDocument(CEikApplication& aApp) : CAknDocument(aApp) 
    {
    // Add any construction that can not leave here
    }   

CUserListboxDocument::~CUserListboxDocument()
    {
    // Any destruction code here
    }

CEikAppUi* CUserListboxDocument::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) CUserListboxAppUi));
    }

⌨️ 快捷键说明

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