Difference between revisions of "GetWindowSize"

From SCAR Divi Manual
Jump to: navigation, search
Line 23: Line 23:
  
 
==See Also==
 
==See Also==
 +
*[[GetWindowSizeEx]]
 
*[[SetWindowSize]]
 
*[[SetWindowSize]]
 
*[[GetWindowBox]]
 
*[[GetWindowBox]]

Revision as of 16:55, 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. An extended version of this function is available as GetWindowSizeEx.

Example

var
  W, H: Integer;

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

See Also