Tuesday, 14 February 2017

Difference between Model and Modeless dialog?


Model
Modeless
1.
A modal dialog box disables the window to which it is assigned until the user dismisses the dialog box. 
 A modeless dialog box is just the reverse of modal. It allows the user complete control of the application which owns it and the user can continue his work without closing the dialog.
2.
A model dialog box is created by calling the doModal() function of the dialog class. 
A modeless dialog box can be created using the Create () command of CDialog class. 
3
This function does not return back control                                       to the caller until the dialog is dismissed.
The Create() call returns as soon as the dialog box is created.
3.
An example of model dialog box is
Is save, saveas in MS-word.
An example of modeless dialog box is
Find, Replace dialog

No comments:
Write comments