?? helloblankappui.cpp
字號:
/* Copyright (c) 2003, Symbian Software Ltd. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "HelloBlank.pan"
#include "HelloBlankAppUi.h"
#include "HelloBlankAppView.h"
#include "HelloBlank.hrh"
#include <HelloBlank.rsg>
void CHelloBlankAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iAppView = new(ELeave) CBlankAppView;
iAppView->ConstructL(ClientRect());
}
CHelloBlankAppUi::CHelloBlankAppUi()
{
// No implementation required
}
CHelloBlankAppUi::~CHelloBlankAppUi()
{
if (iAppView)
{
iEikonEnv->RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
void CHelloBlankAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EHelloBlankCmd1:
{
TBuf<40> text;
iEikonEnv->ReadResource(text, R_HELLOBLANK_HELLO_TEXT);
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(text);
}
break;
default:
Panic(EHelloBlankUi);
break;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -