Re: CListCtrl LVN_ITEMCHANGING
Personally, I am trying to prevent the selected item from being changed. The code does exactly what I want it to do. I did have to change one small piece:
FROM:
if ( pNMListView->uOldState == LVIS_FOCUSED ) {
TO:
if ( pNMListView->uOldState == LVIS_SELECTED ) {
Re: CListCtrl LVN_ITEMCHANGING
I replied in your other thread, basically you should not change any selection or focus in the handler code for LVN_ITEMCHANGING. Instead use SetTimer() to make the changes after the handler has completed.
Re: CListCtrl LVN_ITEMCHANGING
Quote:
Originally Posted by
zerver
Nobody cares how it works as long as it works
I completely agree and my code works for my situation.