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


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


Source position: controls.pp line 2183

protected function TWinControl.GetTopParentHandle: HWND;

Function result

Window handle for the top-most parent control in the hierarchy.


GetTopParentHandle is a HWND function used to get the window handle for the first control in the parent control hierarchy. The value in Parent is recursively searched until Parent is not assigned.

The return value is the ParentWindow property in the top-most control. If ParentWindow is 0 (the unassigned value), the value in its Handle property is used.

CT Web help

CodeTyphon Studio