This example destroys the specified window and all other windows owned by that window in response to a WM_CLOSE message.

#define INCL_WINWINDOWMGR   /* Window Manager functions */
#include <os2.h>

ULONG   fSuccess;
HWND    hwnd;               /* Cursor display window    */

case WM_CLOSE:
     fSuccess = WinDestroyWindow(hwnd);


[Back] [Next]