I have a CTreeCtrl with checkboxes in a dialog that looks like this...
I need to get notified when the checked state of an item in the tree control has changed.
ON_NOTIFY(NM_CLICK... Does not seem to provide any information about WHICH item was clicked...
ON_NOTIFY(TVN_SELCHANGED... Is only triggered when the item is selected which does not happen if the user clicks on the checkbox, only when the user clicks on the item text.
I have an app that catches WM_LBUTTONDOWN and is then able to determine if the click was on a checkbox using CTreeCtrl::HitTest but this app is using a CTreeView. I cannot figure out how to set up the handler for WM_LBUTTONDOWN on the CTreeCtrl (or even if it is possible at all).
Bottom line... I need to know when a CTreeCtrl item checked state has changed, and which item changed.
Please help!!!![]()



Reply With Quote
