Solved

CListBox multiple selection

Posted on 2000-02-21
2
606 Views
Last Modified: 2013-11-20
I found that the multiple selection CListBox doesn't handle keyboard input such as Shift or Ctrl key has been pressed, when user move arrow key to next item, the selected item still being highlighted, and CListBox::GetSelCount() will keep increasing.

How to incorporate shift and Ctrl key into multiple selction CListBox and when user click next item, the previous selected item should be deselected?

Thanks.
0
Comment
Question by:limbe
2 Comments
 
LVL 1

Accepted Solution

by:
carldean earned 50 total points
Comment Utility
You need to use the EXTENDED selection style.  From the dialog editor open the properties for your list box.  Select the Styles sheet and then select Extended from the Selection combo.

This shouls do it.
0
 

Author Comment

by:limbe
Comment Utility
Thank you Very Much. Your answer is concise and straight to the point. Excellent!!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 57
string initialization in java 11 103
mapAB Challlenge 35 84
wordmultiple challenge 12 89
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

12 Experts available now in Live!

Get 1:1 Help Now