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


Gets the handle for the Parent control.


Source position: controls.pp line 2182

protected function TWinControl.GetParentHandle: HWND;

Function result

Control or window handle that is the parent for the current control.


GetParentHandle is a HWND function used to get the handle for the Parent in the current control. The return value contains the handle for the TWinControl instance in Parent (when assigned). When unassigned, the handle in ParentWindow is used as the return value.

See also



The control within which the control is shown.



The window Handle for the Parent widget.

CT Web help

CodeTyphon Studio