GetWindowSize function
Returns the Width and Height of a window, including the window decoration.
Declaration
function GetWindowSize(Handle: hwnd; var Width: Integer;
var Height: Integer): BooleanDescription
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.
