|
-
November 14th, 2008, 06:27 PM
#1
[RESOLVED] How to know CTreeCtrl Checked State has changed
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!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|