The IsZoomed function determines whether a window is maximized.
Syntax
BOOL IsZoomed( HWND hWnd );
Parameters
hWnd [in] Handle to the window to test.
Return Value
If the window is zoomed, the return value is nonzero.If the window is not zoomed, the return value is zero.
If the window is zoomed, the return value is nonzero.
If the window is not zoomed, the return value is zero.
Function Information
Minimum DLL Versionuser32.dllHeaderDeclared in Winuser.h, include Windows.hImport libraryUser32.libMinimum operating systems Windows 95, Windows NT 3.1UnicodeImplemented as Unicode version.
See Also
Windows Overview, IsIconic
<DllImport("user32.dll", CharSet:=CharSet.Auto, ExactSpelling:=True)> _ Public Shared Function IsZoomed(ByVal hWnd As IntPtr) As Boolean End Function
[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)] public static extern bool IsZoomed(HandleRef hWnd);