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

TWidgetSet.GetWindowLong

Returns attributes of a window.

Declaration

Source position: winapih.inc line 161

public function TWidgetSet.GetWindowLong(

  Handle: HWND;

  int: Integer

):PtrInt; virtual;

Arguments

Handle

  

The window handle.

int

  

Offset of the attribute.

Function result

The sttribute.

Description

The following attributes are defined:

The following attributes are also available when the window is a dialog box:

GWL_USERDATA and DWL_USER are the base offsets of user added attributes. The second user attribute can be access with an additional offset of 4, and so on.