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);

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++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!