The OpenIcon function restores a minimized (iconic) window to its previous size and position; it then activates the window.
Syntax
BOOL OpenIcon(
HWND hWnd
);
Parameters
- hWnd
-
[in] Handle to the window to be restored and activated.
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
OpenIcon sends a WM_QUERYOPEN message to the given window.
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