I have a listctrl with CheckBox in it(LVS_EX_CHECKBOXES) .It is a single column List Control . My Problem is when I Click on the CheckBox the particular item is getting selected/UnSelected. But when I click on the Item text the corresponding Checkbox is not getting Selected/UnSelected . How to handle both the Scenarios.
I have a listctrl with CheckBox in it(LVS_EX_CHECKBOXES) .It is a single column List
Share
To check the item when the user clicks on the item text, you’ll have to handle the NM_CLICK message, which is sent whenever the user clicks on the item.
Something along the lines of:
I’m writing this without testing though, so you’ll have to make sure that it doesn’t conflict with the handler for clicks on the check box iteself.