Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TWinControl.ParentWindow

The window Handle for the Parent widget.

Declaration

Source position: controls.pp line 2293

public property TWinControl.ParentWindow : HWND
  read FParentWindow
  write SetParentWindow;

Description

ParentWindow is a HWND property with the window Handle for the Parent widget. A new value assigned to the property is ignored when Parent has already been assigned.

The property value is assigned when the CreateParented constructor or the CreateParentedControl class function is used to create a new TWinControl instance. Setting the property to 0 (zero) causes the handle to be destroyed. 0 is the unassigned handle value.

ParentWindow is used in the the CreateWnd method to form an association between the Handle in the widgetset class instance and the window handle value for a control.

See also

TWinControl.GetParentHandle

  

Gets the handle for the Parent control.

TWinControl.GetTopParentHandle

  

Gets the window handle for the parent control at the top of the control hierarchy.

TWinControl.CreateParented

  

Constructor for a control that is the child of the given widget.

TWinControl.CreateParentedControl

  

Constructor for a control that is the child of the given widget.

TWinControl.CreateWnd

  

Creates the interface object (widget) and assigns the value in Handle.

TControl.Parent

  

The control within which the control is shown.



CT Web help

CodeTyphon Studio