RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.GetCaptureControl Function

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

Pascal
function GetCaptureControl: TControl;
C++
TControl * GetCaptureControl();

Controls

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. 

GetCaptureControl is equivalent to GetMouseGrabControl. 

 

SetCaptureControl 

TControl 

TControl 

TControl 

GetMouseGrabControl

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!