Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Retrieves the current hover time of a list view control.

DWORD GetHoverTime( ) const;

Return Value

Returns the delay, in milliseconds, which the mouse cursor must hover over an item before it is selected. If the return value is -1, then the hover time is the default hover time.


This member function implements the behavior of the Win32 macro, ListView_GetHoverTime, as described in the Platform SDK.


// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;

// Double the hover time, if possible.
DWORD dwTime = pmyListCtrl->GetHoverTime();
if (dwTime != -1)

See Also

CListCtrl Overview | Class Members | Hierarchy Chart | CListCtrl::SetHoverTime | CListCtrl::GetHotCursor

© 2015 Microsoft