RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.GetParentHandle Method

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

Pascal
function GetParentHandle: HWnd;
C++
__fastcall HWnd GetParentHandle();

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!