📄 genfuncs.cpp
字号:
/* Copyright (c) 2003, Petri-Veikko Alaj鋜vi. All rights reserved */
#include <aknnotewrappers.h>
#include <aknstaticnotedialog.h>
#include "GenFuncs.h"
#include "SYSINFO60.pan"
#include <SYSINFO60.rsg>
void NGenFuncs::NShowErrorMsgL(const TDesC& aMessage, const TInt aError)
{
TBuf<NGenFuncs::KErrMsgLen> errStr;
if (aMessage.Length() > NGenFuncs::KErrMsgLenLimit)
errStr.Copy(aMessage.Left(NGenFuncs::KErrMsgLenLimit));
else
errStr.Copy(aMessage);
errStr.AppendNum(aError);
TRAPD(err,
CAknErrorNote* errorNote = new (ELeave) CAknErrorNote;
errorNote->ExecuteLD(errStr); );
if (err)
{
Panic(EShowMsg);
}
}
void NGenFuncs::NShowStaticMsgL(const TDesC& aMessage)
{
CAknStaticNoteDialog* dlg = new(ELeave) CAknStaticNoteDialog;
dlg->SetTextL(aMessage);
dlg->PrepareLC(R_ABOUT_DLG);
dlg->SetNumberOfBorders(1);
dlg->RunLD();
}
void NGenFuncs::NShowInfoMsgL(const TDesC& aMessage)
{
TRAPD(err,
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(aMessage); );
if (err)
{
Panic(EShowMsg);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -