GetWindowBox

From SCAR Divi Manual
Revision as of 16:52, 10 November 2012 by Freddy (talk | contribs)
(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