The CloseWindow function minimizes (but does not destroy) the specified window.
Syntax
BOOL CloseWindow(
HWND hWnd
);
Parameters
- hWnd
-
[in] Handle to the window to be minimized.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
To destroy a window, an application must use the DestroyWindow function.
Function Information
| Minimum DLL Version | user32.dll |
|---|
| Header | Declared in Winuser.h, include Windows.h |
|---|
| Import library | User32.lib |
|---|
| Minimum operating systems |
Windows 95, Windows NT 3.1 |
|---|
| Unicode | Implemented as
Unicode version. |
|---|
See Also