Determine whether a Window is Maximized
Posted by admin - Apr 1, 2008 Articles, Dani Vainstein, QTips, Windows 0 0 Views : 249 Receive Updates For This Category
Article Tools
- Print this page
- Add Comment
- Send to Friend
- Last Updated on :
Jul 16, 2011
The IsZoomed function determines whether a window is maximized.
API 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.
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 )


