BOOL CloseWindow(hwnd) | |||||
HWND hwnd; | /* handle of window to minimize | */ |
The CloseWindow function minimizes (but does not destroy) the specified window. To destroy a window, an application must use the DestroyWindow function.
hwnd
Identifies the window to be minimized.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
If the window is an overlapped window, it is minimized by removing the client area and caption of the open window from the display screen and moving the window's icon into the icon area of the screen.
This function has no effect if the hwnd parameter identifies a pop-up or child window.
IsIconic, OpenIcon