Determine whether a Window is Maximized

Article Tools

The IsZoomed function determines whether a window is maximized.

API Syntax : BOOL IsZoomed( HWND hWnd );

Parameters :

clip_image001 hWnd – [in] Handle to the window to test.

Return Value :

clip_image001[1] If the window is zoomed, the return value is nonzero.

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

Extern.Declare micInteger, "IsZoomed", "user32.dll", "IsZoomed", micHWnd
hwnd = Browser("AQTP").GetROProperty( "HWND" )
retVal = Extern.IsZoomed( hwnd )
Print "Window handle : " & hwnd & " is maximized? ---> " & CBool( retval )
Previous postDetermine whether a Specified Window is Minimized Next postSwitching Focus between Windows

Related Posts

Post Your Comment

You must be logged in to post a comment.