SetDoubleClickTime function (winuser.h)

Sets the double-click time for the mouse. A double-click is a series of two clicks of a 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 clicks of a double-click.

Syntax

BOOL SetDoubleClickTime(
  [in] UINT unnamedParam1
);

Parameters

[in] unnamedParam1

Type: UINT

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.

Return value

Type: BOOL

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The SetDoubleClickTime function alters the double-click time for all windows in the system.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll
API set ext-ms-win-ntuser-mouse-l1-1-1 (introduced in Windows 10, version 10.0.14393)

See also

Conceptual

GetDoubleClickTime

Mouse Input

Reference