Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Simple information Box

From 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 03:20.
43 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.

×