May 18, 2024, 03:25:35 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


DoModal

Started by Mike Stefanik, March 03, 2006, 03:01:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mike Stefanik

I noticed that DoModal doesn't actually make the dialog modal (you can still interact with the parent window, close it, etc.) Is there something that needs to be done in addition to calling DoModal, or is this a bug?
Mike Stefanik
www.catalyst.com
Catalyst Development Corporation

Bruce Peaslee

There is a field in the create function where you indicate the dialog's parent window. Then it will be modal.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

Ionic Wind Support Team

The parent window has to exist before you call CDialog::Create or the handle to the parent doesn't get set.  Not a bug per se, just the way it worked in Pro too.

Since we are using classes now I can actually change that behavior so a pointer to the parent class gets saved instead.  That way the parent window doesn't actually have to be opened before using CDialog::Create
Ionic Wind Support Team

Ionic Wind Support Team

Done.  Makes more sense this way now too.
Ionic Wind Support Team