RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.FindControl Function

Returns the windowed control (Windows) or widget (cross-platform) whose window is identified by the specifiedhandle or which appears at a specified position.

Pascal
function FindControl(Handle: HWnd): TWinControl;
C++
TWinControl * FindControl(HWnd Handle);

Controls

Call FindControl to access the control whose underlying screen object is identified by the Handle parameter or which appears at the position specified by the Pos parameter. If Handle is not the handle of a screen object or if there is no widget at the specified position, FindControl returns nil (Delphi) or NULL (C++). 

 

TWinControl 

FindVCLWindow 

TWidgetControl

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