How do I get a right mouse click in a list box to generate a LBN_SELCHANGE message.
Posted on 2011-02-17
I have created a CListBox-derived class and therein I re-implement the OnRButtonDown event handler.
In response to the right button click, I change the current selection in the list box using the SetCurSel function.
After the current selection has been changed, I want to generate a LBN_SELCHANGE message so that the dialog class in which the list box is located knows that the current selection has changed and reacts accordingly.
It is this last step that has me stumped.