ldmti_12document.cpp
来自「自己做的一个练习的小例子」· C++ 代码 · 共 44 行
CPP
44 行
/* Copyright (c) 2008, Nokia. All rights reserved */
#include "LDMTI_12AppUi.h"
#include "LDMTI_12Document.h"
CLDMTI_12Document* CLDMTI_12Document::NewL(CEikApplication& aApp)
{
CLDMTI_12Document* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
CLDMTI_12Document* CLDMTI_12Document::NewLC(CEikApplication& aApp)
{
CLDMTI_12Document* self = new (ELeave) CLDMTI_12Document(aApp);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CLDMTI_12Document::ConstructL()
{
// Add any construction that can leave here
}
CLDMTI_12Document::CLDMTI_12Document(CEikApplication& aApp) : CAknDocument(aApp)
{
// Add any construction that can not leave here
}
CLDMTI_12Document::~CLDMTI_12Document()
{
// Any destruction code here
}
CEikAppUi* CLDMTI_12Document::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) CLDMTI_12AppUi));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?