GetWindowSizeEx
From SCAR Divi Manual
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.