Difference between revisions of "GetWindowSize"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure GetWindowSize(const Wnd: Hwnd; out Width, Height: Integer); </source> ==Availability== SCAR Divi 3.35 > Current =...")
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns the dimensions of a window specified by '''Wnd'' in '''Width''' and '''Height'''.
+
Returns the dimensions of a window specified by '''Wnd''' in '''Width''' and '''Height'''.
  
 
==Example==
 
==Example==

Revision as of 16:54, 10 November 2012

Definition

procedure GetWindowSize(const Wnd: Hwnd; out Width, Height: Integer);

Availability

SCAR Divi 3.35 > Current

Description

Returns the dimensions of a window specified by Wnd in Width and Height.

Example

var
  W, H: Integer;

begin
  GetWindowSize(GetDesktopWindow, W, H);
  WriteLn(W);
  WriteLn(H);
end.

See Also