Modal and modeless dialogs
-
Hi all, In one of my applications, the user gets a modal dialog box, in which he enters some information. In order to support him in diong that, I also display a modeless dialog with some additional information. (CDialog::Create (IDD_TEMPLATE, NULL)). The order is: first initialize the modeless dialog, then call the DoModal for the modal dialog. However, the user is now not able to move or resize the modeless dialog or to put it on top of the modal dialog to diaplsy all the information, until the modal dialog closes. It would of course be possible to also use a modeless dialog for the second dialog box, but then I need to loop for the user to push the OK (or Cancel) button, and I would possible need to do a whole lot of other things that Windows is now handeling for me. How can I create the modeless dialog so that it will act as if it were another application (in the sense that I can move it, put it on top of others, etc) Anyone any suggestions please? Thanks in advance, William
-
Hi all, In one of my applications, the user gets a modal dialog box, in which he enters some information. In order to support him in diong that, I also display a modeless dialog with some additional information. (CDialog::Create (IDD_TEMPLATE, NULL)). The order is: first initialize the modeless dialog, then call the DoModal for the modal dialog. However, the user is now not able to move or resize the modeless dialog or to put it on top of the modal dialog to diaplsy all the information, until the modal dialog closes. It would of course be possible to also use a modeless dialog for the second dialog box, but then I need to loop for the user to push the OK (or Cancel) button, and I would possible need to do a whole lot of other things that Windows is now handeling for me. How can I create the modeless dialog so that it will act as if it were another application (in the sense that I can move it, put it on top of others, etc) Anyone any suggestions please? Thanks in advance, William
Create the modeless dialog within the modal dialog's
OnInitDialog()
method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Create the modeless dialog within the modal dialog's
OnInitDialog()
method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
Thanks, I'll try that. Regards, WIlliam