CListCtrl::GetHotItem

当前检索列表视图项在光标之下。

int GetHotItem( );

返回值

列表视图控件的当前快捷项的索引。

备注

此成员函数实现Win32宏,ListView_GetHotItem的行为,如 Windows SDK所述。 快捷项目定义为当前选定的项目,该快捷跟踪(和悬停选定状态时启用。

快捷跟踪活动,那么,当用户悬停在列表视图项目时,项目标签自动显示,而无需使用鼠标按钮。

示例

    // Set the hot item to the first item only if no other item is 
    // highlighted.
    if (m_myListCtrl.GetHotItem() == -1)
        m_myListCtrl.SetHotItem(0);

要求

Header: afxcmn.h

请参见

参考

CListCtrl选件类

层次结构图

CListCtrl::GetHotCursor