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

TWidgetSet.GetWindowSize

Returns the Width and Height of the window.

Declaration

Source position: winapih.inc line 160

public function TWidgetSet.GetWindowSize(

  Handle: HWND;

  var Width: Integer;

  var Height: Integer

):Boolean; virtual;

Arguments

Handle

  

The window handle.

Width

  

The width.

Height

  

The height.

Function result

False on failure.

Description

The size is the client width and height for forms or the total size for sub-controls

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