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();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!