Solved

CListCtrl selection question

Posted on 2001-06-11
1
2,824 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now