Difference between revisions of "GetWindowSizeEx"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure GetWindowSizeEx(const Wnd: Hwnd; out Width, Height: Integer; const ClientArea: Boolean); </source> ==Availability=...") |
(No difference)
|
Latest revision as of 16:57, 10 November 2012
Definition
procedure GetWindowSizeEx(const Wnd: Hwnd; out Width, Height: Integer; const ClientArea: Boolean);
Availability
SCAR Divi 3.35 > Current
Description
Returns the dimensions of a window specified by Wnd in Width and Height. If the given window does not exist 0 is returned for both dimensions. If ClientArea is set to true, the dimensions returned are those of the client area of the window on the screen, rather than the window itself.
Example
var W, H: Integer; begin GetWindowSizeEx(GetDesktopWindow, W, H, False); WriteLn(W); WriteLn(H); end.