Capturing check/uncheck in checkbox in listcontrol
-
Hi, I am using CListControl in Dialog and one of the column is checkbox.How would I capture change (check/uncheck) in checkbox in any of the row.Thanks for help. Regards
-
itkid wrote:
I am using CListControl in Dialog and one of the column is checkbox.
Did you actually put a check box in each row of that coloumn or just an ICON of check/uncheck marks?
nave [My Articles] [My Blog]
-
conditional checkbox is present in few row. I just want to capture any change in any checkbox.
I hope you are showing the check box with LVS_EX_CHECKBOXES. If so, you will get the LVN_ITEMCHANGED notification when user checks or unchecks the check box. you can identify the state of check box by getting the state image of the item. From MSDN: "State image 1 is the unchecked box, and state image 2 is the checked box. Setting the state image to zero removes the check box."
nave [My Articles] [My Blog]