CAknMessageQueryDialog
| Wed, 2005-04-13 07:38 | |
|
|
Hi, Can anyone show me the way where I can know when my CAknMessageQueryDialog is dismissed. It doesnt have OkTOExit() method. Then whats the alternative for that. Any code fragments will be a great help. Thanx in advance... Dushyant Gaur |






Forum posts: 982
Can anyone show me the way where I can know when my CAknMessageQueryDialog is dismissed.
It doesnt have OkTOExit() method. Then whats the alternative for that.
Any code fragments will be a great help.
Thanx in advance...
What exactly are you trying to ask? Are you extend the CAknMessageQuesryDialog? Or are you using a CAknMessageQuesryDialog? If second case check for RunLD
pirosl
Forum posts: 48
class CKnGrpNotificationDialog: public CAknQueryDialog
{
CAknMessageQueryDialog* dlg;
virtual TBool OkToExitL(TInt aButtonId) ;
};
Now in any method of this class I try to create an instance of CAknMessageQueryDialog and show it (following code).
CKnGrpNotificationDialog::ExecuteLD(TInt aResourceId)
{
dlg = CAknMessageQueryDialog::NewL(iMsg);
dlg->PrepareLC(aResourceId);
return dlg->RunLD();
}
But when the dialog is dismissed, ideally OkToExit method should be called. But its not been called and I have no way to know which button on the dialog is cliked by the user.
The one way of knowing the button id is the return value of dlg->RunLD(), but it will give me correct value only if it is a wait dialog. What if it is a Modeless dialog? In that case RunLD() will return immediately and then I cant get the value of button clicked.
Dushyant Gaur
Software Specialist,
Kodiak Networks,
No 401 Prestige Sigma, 4th Floor
3 Vittal Mallya Road
Bangalore - 560 001
India
Forum posts: 982
{
CAknMessageQueryDialog* dlg;
protected: //from CAknQuesryDialog
TBool OkToExitL(TInt aButtonId) ;
};
?
Where is your OkToExit(TInt aButtonId) implementation?
pirosl
Forum posts: 6
void CAknDialog::ProcessCommandL( TInt aCommandId ) virtual