I am working on a program that loads a listview and I set some checkboxes on and I leave some off depending on my criteria. The question is, is there a way to tell when some one clicks and changes a checkbox? I am keeping a count of those that are checked and if the user changes one either by checking it or unchecking it, I would like to be able to update the counter correctly.
Thanks,
Bill
Bill, to my knowledge, there is no listview notification message that directly alerts the parent window to a change in the checkbox state.
That being the case, you would need to trap the click notification, do a hit test to get the item number, and manually see if the checkbox state has changed.
Sam
The attached program has everything in it you need to solve your problem.
Sorry it took me so long to get back.
That is exactly what I needed. Works exactly as I need it to. Will upload the finished product so others can us or learn from.
Thanks,
Bill