WinXGetPlacement


WinXGetPlacement (hWnd, @minMax, RECT @restored)

Gets information concerning how the window is displayed

Parameter Description
hWnd The handle to the window to get the information for
@minMax A variable to receive the minimised/maximised state of the window
RECT @restored A RECT structure to receive the restored position and size of the window

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The minMax parameter recevies one of these constants:

$$SW_SHOWMAXIMIZED
The window is maximised
$$SW_SHOWMINIMIZED
The window is minimised
$$SW_SHOWNORMAL
The window is neither maximised nor minimised. This is also called the restored state

Examples

' Get the window placement
WinXGetPlacement (#hMain, @minMax, @restored)
IF minMax = $$SW_SHOWMAXIMISED THEN PRINT "Window is maximised"

Related Links

WinXSetPlacement
WinXDisplay
WinXShow
WinXHide