|
-
July 20th, 2005, 07:41 AM
#1
Making a modeless dialog modal?
How does one make a modal dialog box out of a modeless dialog box? I tried checking the 'system modal' style in the dialog box editor style selection options, but it did not work. It DID force the dialog box to always be top level but I could, nevertheless, go to other windows and operate them. Since both 'CReateDialog()' and 'DialogBox()' use 'CreateWIndowEx()' I wonder how windows makes it such that you can't do anything else but operate on the modal dialog box. If I put the handle of the owner to the desktop would that do the trick (though I am not sure how to get the handle of the desktop).
The reason I am doing this is that I have already created a class of modeless dialog boxes and for convenience I would like to make some of them modal without creating (deriving) another class.
Thanks,
Brian
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
|