Link to home
Start Free TrialLog in
Avatar of limbe
limbe

asked on

CListBox multiple selection

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.
ASKER CERTIFIED SOLUTION
Avatar of carldean
carldean
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of limbe
limbe

ASKER

Thank you Very Much. Your answer is concise and straight to the point. Excellent!!