This call destroys a window and its child windows.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HWND hwnd; /* Window handle. */ BOOL rc; /* Window-destroyed indicator. */ rc = WinDestroyWindow(hwnd);