I am using the following solution to show or hide checkboxes in a TreeView:
https://stackoverflow.com/a/22230299/1583649
However, now i would like to know how to check if the checkbox is hidden or not for the node.
For example, i want to be able to set checkbox.checked to true (or false) on only the children of a top-level node that have a checkbox visible when the top-level node is checked. Is there a way to do this?
TVM_GETITEM or TVM_GETITEMSTATE can be used to get the state, which can then be used to deduce which checkbox image (none, checked or unchecked) is on the node. Here's an extension class that provides the two methods you need.
USAGE:
EXTENSIONS: