Difference between revisions of "GetWindowBox"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
 
Line 20: Line 20:
 
*[[GetWindowBoxEx]]
 
*[[GetWindowBoxEx]]
 
*[[SetWindowBox]]
 
*[[SetWindowBox]]
 +
*[[GetWindowSize]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Window Functions]]
 
[[Category:Window Functions]]

Latest revision as of 15:52, 10 November 2012

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