Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CListBox multiple selection

Posted on 2000-02-21
2
Medium Priority
?
627 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 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

916 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