Catching listbox messages

I have created listbox using create() of CListBox. There is third party control in my application which is adding strings in the listbox. How do i catch message when the string is added in the list box ? (how do i trap LB_ADDSTRING for the listbox ? )
Who is Participating?
ashman061699Connect With a Mentor Commented:
Add a new class to your project which has as public base class CListBox
(Use Class-Wizard!).
Then, in Class-Wizard, add message-handlers to catch the window-messages you want.
Use your own class instead of CListBox.
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.