This function creates a standard window.
#define INCL_WINFRAMEMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HWND hwndParent; /* Parent-window handle. */ ULONG flStyle; /* Frame-window style. */ PULONG pflCreateFlags; /* Frame-creation flags. */ PSZ pszClassClient; /* Client-window class name. */ PSZ pszTitle; /* Title-bar text. */ ULONG flStyleClient; /* Client-window style. */ HMODULE Resource; /* Resource identifier. */ ULONG ulId; /* Frame-window identifier. */ PHWND phwndClient; /* Client-window handle. */ HWND hwndFrame; /* Frame-window handle. */ hwndFrame = WinCreateStdWindow(hwndParent, flStyle, pflCreateFlags, pszClassClient, pszTitle, flStyleClient, Resource, ulId, phwndClient);