Destroying a Window

An application can destroy a window by using the WinDestroyWindow function. The following figure shows how to create and then destroy a control window:

    HWND hwndCtrl;
    HWND hwndParent;

    hwndCtrl = WinCreateWindow(hwndParent, WC_BUTTON, ...);

    WinDestroyWindow(hwndCtrl);


[Back: Maximizing, Minimizing, and Restoring a Frame Window]
[Next: Window Classes]