-
October 11th, 2012, 07:29 AM
#16
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 ) {
-
October 11th, 2012, 07:48 AM
#17
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.
Nobody cares how it works as long as it works
-
October 11th, 2012, 07:52 AM
#18
Re: CListCtrl LVN_ITEMCHANGING
Originally Posted by zerver
Nobody cares how it works as long as it works
I completely agree and my code works for my situation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|