changing the color of the previous selected node of CtreeCtrl
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I have a CTreeCtrl, I need to change the color of the node that was previously selected. How do I do this. Also I can get the previous node to be bold, but then how do I reset the same when I click on some other node.?
Look into the MSDN documentation for the NM_CUSTOMDRAW message. That allows you to manipulate the visual appearance of the tree control without having to resort to full-blown owner-drawn implementations. Michael Dunn has done some nice articles on the subject elsewhere at CG - I suggest you search for them. HTH