Controls.GetCaptureControl
From RAD Studio VCL Reference
Contents |
Delphi Information
From Controls.pas
function GetCaptureControl(): TControl;
Unit: Controls
Type: function
Visibility: public
C++ Information
From Controls.hpp
Controls::TControl * __fastcall GetCaptureControl(void);
Unit: Controls
Type: function
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.