Export (0) Print
Expand All
Expand Minimize

ListView_SetHoverTime macro

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 dwHoverTime
);

Parameters

hwndLV

Type: HWND

A handle to a list-view control.

dwHoverTime

Type: DWORD

The new amount of time, in milliseconds, that the mouse cursor must hover over an item before it is selected. If this value is (DWORD)-1, then the hover time is set to the default hover time.

Return value

Returns the previous hover time.

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft