GetWindowBoxEx

From SCAR Divi Manual
Jump to: navigation, search

Definition

function GetWindowBoxEx(const Wnd: Hwnd; const ClientArea: Boolean): 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. If ClientArea is set to true, the box which is returned will contain the coordinates of the client area of the window on the screen, rather than the window itself.

Example

begin
  WriteLn(BoxToStr(GetWindowBoxEx(GetDesktopWindow, False)));
end.

See Also