|
-
July 28th, 2005, 02:11 PM
#8
Re: Simple Win32 dialog based project
 Originally Posted by JohnCz
Smasher/Devourer
You have missed modeless dialogs.
Above does not apply to a modeless dialogs that may be used for example as a child of the frame window in or even as main window of the application.
In this case main message loop is necessary as well as IsDialogMessage call from a loop to.
I wrote that code to be a WinAPI analogue of what you get when you create a dialog-based application with the MFC AppWizard. In other words, the box created from IDD_MAINDIALOG is assumed to be the application's main window. Under that specific set of circumstances, where the dialog's parent window is always set to NULL, does it matter whether the dialog is modal or modeless?
My Windows programming experience is admittedly quite limited, so it could be that I'm missing something obvious here. But I'm not sure why you'd want to create a modeless dialog in this situation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|