Modal dialog window • After dialog window procedure is defined, dialog window can be created with functions Dialog. Box or Dialog. Box. Param. • Dialog window has two handles: dialog window itself and parent window’s. • Dialog. Box. Param creates a modal dialog box from a dialog box template resource. It has 5 th argument, which is sent to dialog procedure as LPARAM parameter of the WM_INITDIALOG MESSAGE.
Indirect dialog window • Functions Dialog. Box. Indirect or Dialog. Box. Indirect. Param creates a modal box from a dialog box template • DLGTEMPLATE(EX) structure • DLGITEMTEMPLATE(EX) structure let define individual dialog window
DLGTEMPLATE
With class • WNDCLASS structure can be used to define dialog: – wnd. cb. Wnd. Wxtra = DLGWINDOWEXTRA; • Register as simple window
Message loop • Is. Dialog. Message is function used to modify message loop for modeless (not necessarily) dialog boxes