HWND CreateDialogIndirectParam(hInstance,lpDialogTemplate,hWndParent,lpDialogFunc,dwInitParam)
This function creates a modeless dialog box, sends a WM_INITDIALOG message to the dialog function before displaying the dialog box, and passes dwInitParam as the message lParam. This message allows the dialog function to initialize the dialog-box controls. Otherwise, this function is identical to the CreateDialogIndirect function.
For more information on creating a modeless dialog box, see the description of the
CreateDialogIndirect function.
Parameter | Type/Description | |
hInstance | HANDLE Identifies an instance of the module whose executable file contains the dialog-box template. | |
lpDialogTemplate | LPSTR Points to a block of memory that contains a DLGTEMPLATE data structure. | |
hWndParent | HWND Identifies the window that owns the dialog box. | |
lpDialogFunc | FARPROC Is the procedure-instance address of the dialog function. For details, see the “Comments” section in the description of the CreateDialogIndirect function. | |
dwInitParam | DWORD Is a 32-bit value which CreateDialogIndirectParam passes to the dialog function when it creates the dialog box. |
The return value is the window handle of the dialog box. It is NULL if the function cannot create either the dialog box or any controls in the dialog box.