What is the difference between a dialog box and a window/view ?
Printable View
What is the difference between a dialog box and a window/view ?
Both are windows, but the dialog box is a window that is created from a dialog template.
Difference: A dialog may or may not have it's own message loop. *Modal* dialogs have their own message loop and while displayed, blocks the parent's loop from processing messages. This is why the parent can't do anything (not counting threads) when a modal dialog is displayed.
*Modeless* dialog boxes share the message loop with the parent. This is why the parent window is still "alive" when a modeless dialog is displayed.
And like the other post stated, modal and modeless dialogs are created from a dialog template.
Regards,
Paul McKenzie
Regards,
Paul McKenzie
Thank you Mr.Paul McKenzie for your reply.