CListCtrl::GetSelectionMark
检索列表视图控件的选择标记。
int GetSelectionMark( );
返回值
从零开始的选中标记或-1;如果未选中标记。
备注
此成员函数实现Win32宏,ListView_GetSelectionMark的行为,如 Windows SDK所述。
示例
// Set the selection mark to the first item only if no other item is
// selected.
if (m_myListCtrl.GetSelectionMark() == -1)
m_myListCtrl.SetSelectionMark(0);
要求
Header: afxcmn.h