I am displaying a pop up dialog using the following code
CAboutDialog* dialog = new(ELeave) CAboutDialog();
dialog->SetMopParent(this);
dialog->ExecuteLD(R_ABOUT_BOX);
//CAboutDialog is derived class of CAknDialog
And dialog is getting displyed well.
How I know whether my dialog is getting displayed or not programmatically and if dialog is getting displayed how to close it programmatically
I tried to know whether dialog is getting displayed or not using IsDisplayingMenuOrDialog() , but it is giving false.
I found a solution for closing the dialog. It works, but I am quite suspicious if it is the correct way. What I do is that I delete the dialog from a menu command handler (not dialog's own notification - might work there as well):
delete theModalDialog;
It seems that ExecutLD notices this and won't do double deletion.
THE RIGHT WAY (just found it):
call TryExitL(...)
Last edited by petteri@timehouse.fi; 2005-08-10 at 09:51.