How to close a dialog (for example CAknQueryDialog) programmatically
| Wed, 2005-12-14 10:21 | |
|
Hello,
I want to know how can I close a dialog programmatically for example CAknQueryDialog while it is activated on the screen and waiting for user input (Yes NO). And also how to get the information whether the dialog is active on the screen or not. Please help! I stuck on this for couple of hours. |
|






Forum posts: 3
Forum posts: 63
DismissQueryL causes a KERN EXEC 3 error when called..and seems like query dialog will be totally close when an event or when a user pressed a key.....
still can't figure out how to dismissed a query dialog programmatically without a reply from the user..is this possible?
hope to hear from anyone regarding this matter..
thanks in advance!
Forum posts: 4
Hi,
Have you solved your problem?
If not, let me tell you.
Once you use ExecuteLD function to execute your dialog, it'l start showing your dialog on screen.
And naturally, if you press the necessary keys[Yes or No], it automatically gets dismissed.
Forum posts: 165
Hi,
I have same problem. I want to dismissed a query dialog programmatically without any action from the user.?
How to do that?
Thanks inAdvance!
Thanks & Regards,
Md.Khalid Ahmad
Forum posts: 49
Have you trayed NeedToDismissQueryL instead of DismissQueryL
Forum posts: 165
Sorry Guys,
Forget to update this post.
I was able to solve it, Solution was very simple.
Just called delete on pointer of CAknQueryDialog.
My code was like:-
Thanks & Regards,
Md.Khalid Ahmad