Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
(probably not directly possible).

I have a MFC application (App), I open a modal dialog (MainDialog), so the application is not available for input (normal behaviour).

Is it possible to open a child dialog (ChildDialog) of MainDialog that could be modeless to the application (effectively overwrite the modal state of the parent dialog) ?

App->MainDialog(modal to App)>ChildDialog(modeless to App)

Or I absolutly have to have a modeless dialog chain?

App->MainDialog(modeless to App)>ChildDialog(modeless to App)

No biggie making the changes, I was just wondering if there was a better way of doing this.

Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 22-Oct-12 16:35pm    
I don't know exact answer, but... Don't you think this would be a pretty bad idea of UI design even if it's possible? Even with modal dialog over a modal dialog? Would you like to develop in the style of Windows system options applets, if not worse? :-)
--SA

1 solution

The answer is yes, you can do that.

There are many articles available on modeless dialogs.

If the modal dialog is the parent, be sure and clean up the modeless dialog on destroy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900