Sign in Join
FPDoc Onlineexperiment

TWinControl.GetTopParentHandle function

Member of TWinControlprotectedIn unit Controls

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

Declaration

pascal
function GetTopParentHandle: HWND

Function result

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

Description

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.