Vcl.Controls.FindControl

From XE3 API Documentation
Jump to: navigation, search

Delphi

function FindControl(Handle: HWnd): TWinControl;

C++

extern DELPHI_PACKAGE TWinControl* __fastcall FindControl(HWND Handle);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

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

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

See Also