Sign in Join
FPDoc Onlineexperiment

GetWindowSize function

In unit LCLIntf

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

Declaration

pascal
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

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.