[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LCLIntf' (#lcl)

GetWindowRect

Retrieves the bounding rectangle of a window, including the window decoration in screen coordinates.

Declaration

Source position: winapih.inc line 159

function GetWindowRect(

  Handle: HWND;

  var Rect: TRect

):Integer;

Description

Retrieves the bounding rectangle of a window, including the window decoration. The coordinates are given relative to the upper-left corner of the screen in screen.

See also

GetWindowSize

  

Returns the Width and Height of a window, including the window decoration.

SetWindowPos

  

Changes the size, position, and Z order of a window.

#lcl.Forms.TCustomForm.Width

#lcl.Forms.TCustomForm.Height

The latest version of this document can be found at lazarus-ccr.sourceforge.net.