?? demobmpappui.cpp
字號:
/* Copyright (c) 2005, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "DemoBMP.pan"
#include "DemoBMPAppUi.h"
#include "DemoBMPAppView.h"
#include "DemoBMP.hrh"
void CDemoBMPAppUi::ConstructL()
{
BaseConstructL();
iAppView = CDemoBMPAppView::NewL(ClientRect());
iAppView->DrawNow();
AddToStackL(iAppView);
}
CDemoBMPAppUi::CDemoBMPAppUi()
{
// add any construction that cannot leave here
}
CDemoBMPAppUi::~CDemoBMPAppUi()
{
if (iAppView)
{
iEikonEnv->RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
void CDemoBMPAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EDemoBMPCommand1:
{
_LIT(message,"Command 1");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EDemoBMPBasicUi);
break;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -