CTreeCtrl with checkboxes
C / C++ / MFC
2
Posts
2
Posters
1
Views
1
Watching
-
Does anyone know how to detect if a item was checked or unchecked in a CTreeCtrl? I took a look at the CTreeCtrl and it seems that there are no messages for this kind of thing.
-
Does anyone know how to detect if a item was checked or unchecked in a CTreeCtrl? I took a look at the CTreeCtrl and it seems that there are no messages for this kind of thing.
Sorry - no special notification for that. You'll have to handle WM_LBUTTONDOWN and use CTreelCtrl::HitTest. If returned flags have TVHT_ONITEMSTATEICON bit set, it was a click on checkbox. Tomasz Sowinski -- http://www.shooltz.com