This function creates a dialog window.

#define INCL_WINDIALOGS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND            hwndParent;     /*  Parent-window handle of the created dialog window. */
HWND            hwndOwner;      /*  Requested owner-window handle of the created dialog window. */
PFNWP           pfnDlgProc;     /*  Dialog procedure for the created dialog window. */
PDLGTEMPLATE    pdlgt;          /*  Dialog template. */
PVOID           pCreateParams;  /*  Pointer to application-defined data area. */
HWND            hwndDlg;        /*  Dialog-window handle. */

hwndDlg = WinCreateDlg(hwndParent, hwndOwner,
            pfnDlgProc, pdlgt, pCreateParams);


[Back] [Next]