CListCtrl selection question

Hi,
How do I clear the selection from a CListCtrl control ?

thanks,
Yoav.
yoavoAsked:
Who is Participating?
 
MadYugoslavConnect With a Mentor Commented:
CListCtrl* List;
int Item;

while( (Item=List->GetNextItem(-1, LVNI_SELECTED) != -1 )
   List->SetItemState(Item, 0, LVIS_SELECTED);

This will deselect all items;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.