Declare Function GetDoubleClickTime Lib "user32.dll" () As Long
Platforms: Win 32s, Win 95/98, Win NT
GetDoubleClickTime determines the maximum time allowed between successive mouse clicks for Windows to interpret it as a double click (along with negligible mouse movement). The maximum time between clicks is given in milliseconds. The function returns the maximum double click time.
Example:
' Display the maximum amount of time between clicks to
' consider the operation a double click.
Dim doubletime As Long ' receives double click time
doubletime = GetDoubleClickTime() ' get the maximum double click time
Debug.Print doubletime; "milliseconds are allowed between clicks during a double click."
Related Call: SetDoubleClickTime
Category: Mouse
Back to the index.