CListCtrl::SetSelectionMark

Sets the selection mark of a list view control.

int SetSelectionMark(
   int iIndex 
);

Parameters

  • iIndex
    The zero-based index of the first item in a multiple selection.

Return Value

The previous selection mark, or -1 if there was no selection mark.

Remarks

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

Example

See the example for CListCtrl::GetSelectionMark.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::GetSelectionMark

Other Resources

CListCtrl Members