×
Namespaces

Variants
Actions

Simple information Box

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: giridharn (29 May 2007)
Last edited: hamishwillee (25 Jul 2012)
emulator

R AVKON MESSAGE QUERY DIALOG N80.png

R AVKON MESSAGE QUERY DIALOG E90.png


// S60 1-3rd ed
#include <avkon.rsg>
#include <aknmessagequerydialog.h>
// Link against: avkon.lib
 
// Returns SoftKey ID or zero if canceled
// EAknSoftkeyCancel, EAknSoftkeyBack and EAknSoftkeyNo return Zero
TInt CMyApp::MyQueryDlg(const TDesC& aHeader, const TDesC& aText)
{
CAknMessageQueryDialog* dlg=
CAknMessageQueryDialog::NewL(const_cast<TDesC&>(aText));
CleanupStack::PushL(dlg);
dlg->SetHeaderTextL(aHeader);
CleanupStack::Pop(dlg);
// ExecuteLD loads, displays, and deletes the dialog.
// it returns the id of the selected softkey or zero for cancel
return dlg->ExecuteLD(R_AVKON_MESSAGE_QUERY_DIALOG);
}
This page was last modified on 25 July 2012, at 06:20.
28 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×