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

GetWindowSize

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

Declaration

Source position: winapih.inc line 160

function GetWindowSize(

  Handle: HWND;

  var Width: Integer;

  var Height: Integer

):Boolean;

Description

This function is a Lazarus addition and does not exist in the Windows API. It returns the Width and Height of a window, including the window decoration. To get the size of a form without the window decoration just use TCustomForm.Width and TCustomForm.Height or TCustomForm.ClientWidth and TCustomForm.ClientHeight.

See also

GetWindowRect

  

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

#lcl.Forms.TCustomForm.Width

#lcl.Forms.TCustomForm.Height

#lcl.Forms.TCustomForm.ClientWidth

#lcl.Forms.TCustomForm.ClientHeight

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