fairylanddocument.cpp
来自「一个比较完整的有关移动开发的例子 vc++6.0下编译通过」· C++ 代码 · 共 44 行
CPP
44 行
/* Copyright (c) 2008, Nokia. All rights reserved */
#include "FairyLandAppUi.h"
#include "FairyLandDocument.h"
CFairyLandDocument* CFairyLandDocument::NewL(CEikApplication& aApp)
{
CFairyLandDocument* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
CFairyLandDocument* CFairyLandDocument::NewLC(CEikApplication& aApp)
{
CFairyLandDocument* self = new (ELeave) CFairyLandDocument(aApp);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CFairyLandDocument::ConstructL()
{
// Add any construction that can leave here
}
CFairyLandDocument::CFairyLandDocument(CEikApplication& aApp) : CAknDocument(aApp)
{
// Add any construction that can not leave here
}
CFairyLandDocument::~CFairyLandDocument()
{
// Any destruction code here
}
CEikAppUi* CFairyLandDocument::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) CFairyLandAppUi));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?