How to get the selected items..???

Does anyone know how to get the selected items inside a Multi-Selection CListBox???
softyanAsked:
Who is Participating?
 
fasterConnect With a Mentor Commented:
send a LB_GETSELCOUNT message to the listbox first, then allocate a memory according to the size returned and send message LB_GETSELITEMS, using the memory allocated as the lparam.  Check document for these two messages for detail.
0
 
shogiCommented:
Yes, Shogi's answer is the MFC version, the MFC function then send the messages I mentioned.  I don't like MFC, but probably you do.
0
 
fasterCommented:
I prefer Shogi's answer! Thanks faster and Shogi.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.