Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CListBox multiple selection

Posted on 2000-02-21
2
Medium Priority
?
624 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
carldean earned 200 total points
ID: 2541712
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
ID: 2543614
Thank you Very Much. Your answer is concise and straight to the point. Excellent!!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

688 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