📄 myhellodocument.cpp
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#include "MyHelloAppUi.h"
#include "MyHelloDocument.h"
CMyHelloDocument* CMyHelloDocument::NewL(CEikApplication& aApp)
{
CMyHelloDocument* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
CMyHelloDocument* CMyHelloDocument::NewLC(CEikApplication& aApp)
{
CMyHelloDocument* self = new (ELeave) CMyHelloDocument(aApp);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CMyHelloDocument::ConstructL()
{
// Add any construction that can leave here
}
CMyHelloDocument::CMyHelloDocument(CEikApplication& aApp) : CAknDocument(aApp)
{
// Add any construction that can not leave here
}
CMyHelloDocument::~CMyHelloDocument()
{
// Any destruction code here
}
CEikAppUi* CMyHelloDocument::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) CMyHelloAppUi));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -