Vcl.Controls.FindVCLWindow

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindVCLWindow(const Pos: TPoint): TWinControl;

C++

extern DELPHI_PACKAGE TWinControl* __fastcall FindVCLWindow(const System::Types::TPoint &Pos);

Properties

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

Description

Returns the windowed control, if any, at the specified location.

Call FindVCLWindow to locate the windowed control under a certain point. For example, use FindVCLWindow to identify the windowed control that is under the mouse from another control that has captured the mouse. The Pos parameter specifies the location that must be over the returned windowed control. If there is no windowed control under the Pos parameter, FindVCLWindow returns nil (Delphi) or NULL (C++).

See Also