dialog question
-
When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.
-
When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.
A Modal dialog locks down the user interface until the user exits the dialog. When you call DoModal, you are creating a Modal dialog. You want to create a Modeless dialog. You can do this by declaring an instance of your dialog, calling the Create method, then calling the ShowWindow method and setting the dialog to visible. When you want this dialog to disappear, you can call ShowWindow again to hide the dialog.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life! -
When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.
-
When I create a new dialog class and display it with the DoModal() command, I can't interact with anything else on the screen until I close the dialog. How do I create a dialog that will stay up on the screen and allow me to still access everything else (menus, etc in my actual MDI, SDI application). Similar to the properties dialog in visual studio.
http://www.codeproject.com/useritems/gettingmodeless.asp Nish
Check out last week's Code Project posting stats presentation from :- http://www.busterboy.org/codeproject/ Feel free to make your comments.