WinForms TreeView: check if Checkbox is hidden
问题 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? 回答1: TVM_GETITEM or TVM_GETITEMSTATE can be used to get the state, which