GetWindowBox

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