ballappui.cpp
来自「symbian中活动对象的一个例子」· C++ 代码 · 共 59 行
CPP
59 行
/* Copyright (c) 2008, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "Ball.pan"
#include "BallAppUi.h"
#include "BallAppView.h"
#include "Ball.hrh"
void CBallAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iAppView = CBallAppView::NewL(ClientRect());
AddToStackL(iAppView);
}
CBallAppUi::CBallAppUi()
{
// add any construction that cannot leave here
}
CBallAppUi::~CBallAppUi()
{
if (iAppView)
{
iEikonEnv->RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
void CBallAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EBallCommand1:
{
_LIT(message,"Command 1");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EBallBasicUi);
break;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?