Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.GetParentHandle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetParentHandle: HWND;

C++

HWND __fastcall GetParentHandle();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Returns the window handle for the window of the control's parent.

Use the handle returned by GetParentHandle as a parameter to Windows API function calls that need the window handle for the parent window of the control. If the Parent property is not nil (Delphi) or NULL (C++), GetParentHandle returns the Handle property of the parent control. If the Parent property is nil (Delphi) or NULL (C++), GetParentHandle returns the value of ParentWindow.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance