The IsIconic function determines whether the specified window is minimized (iconic).
BOOL IsIconic(
HWND hWnd // handle to window
);
If the window is iconic, the return value is nonzero.
If the window is not iconic, the return value is zero.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Windows Overview, Window Functions, IsZoomed