Solved

CListCtrl selection question

Posted on 2001-06-11
1
2,871 Views
Last Modified: 2013-11-20
Hi,
How do I clear the selection from a CListCtrl control ?

thanks,
Yoav.
0
Comment
Question by:yoavo
1 Comment
 
LVL 2

Accepted Solution

by:
MadYugoslav earned 20 total points
ID: 6177207
CListCtrl* List;
int Item;

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

This will deselect all items;
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question