|
-
October 13th, 2009, 12:53 AM
#5
Re: Press space key in CListCtrl object
 Originally Posted by VictorN
Well, I presume you answered the first part of my question, not the second! 
I have just tested a similar control in one of my projects... It does work as expected: checkbox state of the item that has a focus (LVIS_FOCUSED state) changes after each space key press. 
Thanks Victor.
To your 2nd part of ur question, I think there's an internal functionaly that changes checkbox when space key pressed. Actually I use CMFCListCtrl class in my project.
I'm very interested your way to control the state of the checkbox? I tried "SetCheck" function, but it not always works. Do you mean you use "SetCheck" together with "SetItemState(i,LVIS_FOCUSED,LVIS_FOCUSED)"?
Tags for this Thread
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
|