Dialog Box Question
-
When a modal dialog box is closed using EndDialog does it's parent window recieve a message to notify it that the dialog has closed? I want to update some info in my status bar as soon as the dialog is closed. Thanks in advance, Paddy
If this is MFC, then
DoModal
returns only whenEndDialog
is called. If this is a non-MFC modal dialog you created by callingDialogBox
, thenDialogBox
won't return tillEndDialog
is called. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
If this is MFC, then
DoModal
returns only whenEndDialog
is called. If this is a non-MFC modal dialog you created by callingDialogBox
, thenDialogBox
won't return tillEndDialog
is called. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Thanks for the help. It's non-MFC I'm using. Does this mean that my main window can't do anything until EndDialog is called? Paddy
Paddy wrote: It's non-MFC I'm using. Does this mean that my main window can't do anything until EndDialog is called? Yup, your main window will be frozen. An alternative is to use a modeless dialog, or use threads. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]