Vcl.Controls.GetCaptureControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCaptureControl: TControl;

C++

extern DELPHI_PACKAGE TControl* __fastcall GetCaptureControl(void);

Properties

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

Description

Returns the control, if any, that currently receives all mouse messages.

Call GetCaptureControl to determine which control is currently processing mouse messages. When a control has captured the mouse, it receives all mouse messages, even if the mouse is not over the control.

See Also