User32SetDoubleClickTime Method
Sets the 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.
The maximum double-click time is
5000 milliseconds.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool SetDoubleClickTime(
int interval
)
<DllImportAttribute("User32.dll">]
Public Shared Function SetDoubleClickTime (
interval As Integer
) As Boolean
Dim interval As Integer
Dim returnValue As Boolean
returnValue = User32.SetDoubleClickTime(interval)
public:
[DllImportAttribute(L"User32.dll")]
static bool SetDoubleClickTime(
int interval
)
[<DllImportAttribute("User32.dll")>]
static member SetDoubleClickTime :
interval : int -> bool
No code example is currently available or this language may not be supported.
- interval Int32
-
The number of milliseconds that may occur between the first and second clicks of a double-click.
If this parameter is set to 0, the system uses the default double-click time of 500 milliseconds.
If this parameter value is greater than 5000 milliseconds, the system sets the value to 5000 milliseconds.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.