mysunappui.cpp
来自「symbian cba菜单功能描述」· C++ 代码 · 共 94 行
CPP
94 行
/* Copyright (c) 2008, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "Mysun.pan"
#include "MysunAppUi.h"
#include "MysunAppView.h"
#include "Mysun.hrh"
void CMysunAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iAppView = CMysunAppView::NewL(ClientRect());
AddToStackL(iAppView);
}
CMysunAppUi::CMysunAppUi()
{
// add any construction that cannot leave here
}
CMysunAppUi::~CMysunAppUi()
{
if (iAppView)
{
iEikonEnv->RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
void CMysunAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EMysunCommand1:
{
_LIT(message,"Failed to open");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand2:
{
_LIT(message,"Failed to add");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand3:
{
_LIT(message,"Failed to delete");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand4:
{
_LIT(message,"Success!");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand5:
{
_LIT(message,"Logon Success!");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand6:
{
_LIT(message,"Exit!!");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EMysunBasicUi);
break;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?