GetWindowSizeEx

From SCAR Divi Manual
Revision as of 15:57, 10 November 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure GetWindowSizeEx(const Wnd: Hwnd; out Width, Height: Integer; const ClientArea: Boolean); </source> ==Availability=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

See Also