On a TreeView control with the **TVS_CHECKBOXES** style, there's no notification that the checked state of the item has been changed. There's also no notification that indicates the state of the item ...
Try editing a Javascript file, you'll see all the available javascript snippets listed in the Snippets Explorer treeview. Click on e.g. the for snippet in the treeview and the for loop snippet ...