المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : CListBox with multiselection support



C++ Programming
03-30-2009, 02:51 PM
Hi,
I have created a ListBox control with Selection type as Multiselection. Can I know how to handle Ctrl and Shift keys while making a selection in ListBox items. ie.,If I press Shiftkey on a item and select another item than all items in between both items should be selected. If I press Controlkey on a item and select another item then only the two items should be selected.


Thanks..