views:

137

answers:

1

ClistCtrl is set to single selection & single column in report view with no header.

I have tried SetItemState(0,LVIS_SELECTED,LVIF_STATE) and
SetSelectionMark(int index) but these don't work.

A: 

Use SetItemState(0, LVIS_SELECTED, LVIS_SELECTED) to highlight, and SetItemState(0, ~LVIS_SELECTED, LVIS_SELECTED) to unhighlight.

Nuri Crayton