GetWindowBox

From SCAR Divi Manual
Revision as of 20:05, 7 August 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetWindowBox(const Wnd: Hwnd): TBox; </source> ==Availability== SCAR Divi 3.35 > Current ==Description== Returns a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function GetWindowBox(const Wnd: Hwnd): TBox;

Availability

SCAR Divi 3.35 > Current

Description

Returns a TBox containing the upper-left and bottom-right corners of the window specified in Wnd on the screen. If the given window does not exist (X1:0, Y1:0, X2:0, Y2:0) is returned. An extended function is available as GetWindowBoxEx.

Example

begin
  WriteLn(BoxToStr(GetWindowBox(GetDesktopWindow)));
end.

See Also