How to get the selected items..???

Does anyone know how to get the selected items inside a Multi-Selection CListBox???
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.
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.
I prefer Shogi's answer! Thanks faster and Shogi.
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.