3 out of 3 rated this helpful - Rate this topic

IsZoomed function

Applies to: desktop apps only

Determines whether a window is maximized.

Syntax

BOOL WINAPI IsZoomed(
  __in  HWND hWnd
);

Parameters

hWnd [in]

Type: HWND

A handle to the window to be tested.

Return value

Type:

Type: BOOL

If the window is zoomed, the return value is nonzero.

If the window is not zoomed, the return value is zero.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
IsIconic
Conceptual
Windows

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
IsMaximized
Include <windowsx.h> to use the modern name "IsMaximized" for this function.
C# syntax
[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern bool IsZoomed(HandleRef hWnd);
vb.net syntax
<DllImport("user32.dll", CharSet:=CharSet.Auto, ExactSpelling:=True)> _
Public Shared Function IsZoomed(ByVal hWnd As IntPtr) As Boolean
End Function