News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Mouse click speed

Started by Darrel, July 19, 2005, 04:49:20 AM

Previous topic - Next topic

Darrel

Hi all,

How do you determine what the speed setting is for a mouse click?

I am using WM_LBUTTONDOWN and WM_LBUTTONUP and I would like to know If the WM_LBUTTONUP message constitues a click.

Thanks for your time and consideration,

Darrel

gavin

Hi Darrel.

I did something with the mouse for my first time a few days ago i'm new so if i'm wrong sorry.
Quote
The GetDoubleClickTime function retrieves the current double-click time for the mouse. A double-click is a series of two clicks of the mouse button, the second occurring within a specified time after the first. The double-click time is the maximum number of milliseconds that may occur between the first and second click of a double-click.

Syntax

UINT GetDoubleClickTime(VOID);

Return Value

    The return value specifies the current double-click time, in milliseconds.

I got this from www. msdn.com

So maybe something like this.



invoke SendMessage,hWnd,GetDoubleClickTime,0,0

I'm sure the value gets returned in eax.


I hope this is ok.

Darrel

Hi gavin,

Thanks for the reply. This answers my question. Never noticed this function in the API reference before, but it is there.

The correct implementation of the function is:

invoke GetDoubleClickTime

And yes eax contains the result.

Thanks again for your help gavin,

Darrel

PBrennick

Darrel,
Also, remember, if you don't like the value that is returned you can always use the SetDoubleClickTime function.  It sets the double-click time for the mouse.

Paul
The GeneSys Project is available from:
The Repository or My crappy website