How do I change the Double click time of the mouse?
The double click time is the time
between two consecutive mouse clicks
that will cause a double click event.
You can change the time from your VB
Application by calling the SetDoubleClickTime
API function. It has only one parameter.
This is the new DoubleClick time delay in milliseconds.
Declare Function SetDoubleClickTime Lib "user32" Alias _
"SetDoubleClickTime" (ByVal wCount As Long) As Long
N.B. These changes affect the entire system.
How do I retrieve the current Double click time?
You can retrieve the current double click
time in milliseconds by calling the function GetDoubleClickTime.
Declare Function GetDoubleClickTime& Lib _
"user32" ()
To retrieve the Double click time, use the following code:
dct& = GetDoubleClickTime
|