Copyright © 1998-2010 MultiMedia Soft

MouseCapture method

Previous pageReturn to chapter overviewNext page

Remarks

This method has been introduced because the control doesn't send the MouseMove event when the user exits the button area with the button still pressed.

When calling this method with the bCapture parameter set to TRUE, the MouseMove event will still fire when the mouse exits the button area. Note however that it must be called for every button You have on Your form or dialog.

By default the mouse capture is disabled.

 

Syntax

Visual Basic

control.MouseCapture (bCapture as boolean)

 

Visual C++

void control.MouseCapture (BOOL bCapture);

 

Parameter

Description

 

 

bCapture

Boolean value that enables/disables the mouse capture. Supported values are the following:

Value

Meaning

FALSE (default)

Disables the mouse capture

TRUE

Enables the mouse capture