greene
May 27th, 1999, 07:56 AM
I would like to show each item in different color in CTreeView.
The SetTextColor is shown in same color on all items.
How can I to do this?
Help me!!
To change the color/font/style of individual TreeCtrl items, you are going to have to create an "Owner Drawn" version. An owner-drawn tree control leaves it up to the application code (yours) to actually draw the image/text/label; since you are drawing it, you can then do whatever you want to it's appearance. You should be able to find an example of an owner-drawn tree control here at CodeGuru.
Cheers!
Humble Programmer
,,,^..^,,,
Franky Braem
May 27th, 1999, 08:15 AM
There is a good example at codeguru (category CTreeView)