다음을 통해 공유


CListCtrl::GetHoverTime

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.

Remarks

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

Example

// If the hover time is the default set to 1 sec.
DWORD dwTime = m_myListCtrl.GetHoverTime();
if (dwTime == -1)
   m_myListCtrl.SetHoverTime(1000);

Requirements

Header: afxcmn.h

See Also

Concepts

CListCtrl Class

CListCtrl Members

Hierarchy Chart

CListCtrl::SetHoverTime

CListCtrl::GetHotCursor