I am able to check the checkboxes if I do the following:
lvI%stateMask = LVIS_STATEIMAGEMASK
ret = SendMessage (hwndlist, LVM_SETITEMSTATE,
and uncheck them by setting lvi%state to 0.
But this is different from what has been given in help for the state parameter.
In Help they have asked us to use a value for the state member to be the one-based index of the state image shifted left 12 bits. What is this one-based index of the state image?. The stateimage index value is 2 in my case because that index when shifted by 12 bits results in 8192(the value I've used to check the check boxes).But how will zero cause them to be unchecked again?
If someone can provide me help it'll be great.Thanks,
Listview control-check boxes