helloblankdocument.cpp
来自「Symbian OS C++ 手机应用开发(第一卷)部分事例代码」· C++ 代码 · 共 43 行
CPP
43 行
/* Copyright (c) 2003, Symbian Software Ltd. All rights reserved */
#include "HelloBlankAppUi.h"
#include "HelloBlankDocument.h"
CHelloBlankDocument* CHelloBlankDocument::NewL(CEikApplication& aApp)
{
CHelloBlankDocument* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
CHelloBlankDocument* CHelloBlankDocument::NewLC(CEikApplication& aApp)
{
CHelloBlankDocument* self = new (ELeave) CHelloBlankDocument(aApp);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CHelloBlankDocument::ConstructL()
{
// No implementation required
}
CHelloBlankDocument::CHelloBlankDocument(CEikApplication& aApp) : CAknDocument(aApp)
{
// No implementation required
}
CHelloBlankDocument::~CHelloBlankDocument()
{
// No implementation required
}
CEikAppUi* CHelloBlankDocument::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) CHelloBlankAppUi));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?