ListView_SetHoverTime macro (commctrl.h)

Sets the amount of time that the mouse cursor must hover over an item before it is selected. You can use this macro or send the LVM_SETHOVERTIME message explicitly.

Syntax

void ListView_SetHoverTime(
   HWND  hwndLV,
   DWORD dwHoverTimeMsMs
);

Parameters

hwndLV

Type: HWND

A handle to a list-view control.

dwHoverTimeMs

Return value

None

Remarks

The hover time only affects list-view controls that have the LVS_EX_TRACKSELECT, LVS_EX_ONECLICKACTIVATE, or LVS_EX_TWOCLICKACTIVATE extended list-view style.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h