Solved

CListBox multiple selection

Posted on 2000-02-21
2
608 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 51
lucky13 challenge 11 120
EvenOdd challenge 10 88
Problem to open Excel file 15 95
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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 demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

911 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

19 Experts available now in Live!

Get 1:1 Help Now