CListCtrl::GetHoverTime

检索列表视图控件的当前悬停时间。

DWORD GetHoverTime( ) const;

返回值

在毫秒返回,延迟,鼠标光标必须将鼠标指针悬停在项目中,在选择了之前。 如果返回值为-1,则悬停时间是默认悬停时间。

备注

此成员函数实现Win32宏,ListView_GetHoverTime的行为,如 Windows SDK所述。

示例

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

要求

Header: afxcmn.h

请参见

参考

CListCtrl选件类

层次结构图

CListCtrl::SetHoverTime

CListCtrl::GetHotCursor