How can I prevent changing selection in a list box (CListBox).
When user changes the selection I need to verify current data. If the data is not valid I need to disallow changing the selection. I handled ON_LBN_SELCHANGE but it doesn't give me much control. I am looking for something like SELECTION_CHANGING where I can cancel the change if my data is not valid. Is this possible in a list box?


Reply With Quote

Victor Nijegorodov 
Bookmarks