AtlAxCreateDialog

ATLAPI_(HWND) AtlAxCreateDialog( HINSTANCE hInstance, LPCWSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogProc, LPARAM dwInitParam );

Parameters

hInstance

[in] Identifies an instance of the module whose executable file contains the dialog box template.

lpTemplateName

[in] Identifies the dialog box template. This parameter is either the pointer to a null-terminated character string that specifies the name of the dialog box template or an integer value that specifies the resource identifier of the dialog box template. If the parameter specifies a resource identifier, its high-order word must be zero and its low-order word must contain the identifier. You can use the MAKEINTRESOURCE macro to create this value.

hWndParent

[in] Identifies the window that owns the dialog box.

lpDialogProc

[in] Points to the dialog box procedure.

dwInitParam

[in] Specifies the value to pass to the dialog box in the lParam parameter of the WM_INITDIALOG message.

Remarks

Creates a modeless dialog box from a dialog template provided by the user. The resulting dialog box can contain ActiveX controls.

See CreateDialog and CreateDialogParam in the Platform SDK.

ATL Macros and Global Functions

See Also

Composite Control Fundamentals