MessageBox 用于真机测试比较方便
Friday, 27. April 2007, 04:32:35
MessageBox(const TDesC& aMsg)
{
CAknGlobalNote* MsgBox = CAknGlobalNote::NewL();
MsgBox->SetSoftkeys(R_AVKON_SOFTKEYS_EMPTY);
#ifdef __SERIES60_3X__
TInt id = MsgBox->ShowNoteL(EAknGlobalTextNote,aMsg);
#else
TInt id = MsgBox->ShowNoteL(EAknGlobalInformationNote,aMsg);
#endif
//等待2秒后,自动将提示信息关闭
User::After(2000000);
MsgBox->CancelNoteL(id);
delete MsgBox;
MsgBox = NULL;
}








