|
-
May 27th, 1999, 07:56 AM
#1
How can I see each item in different color in CTreeView?
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!!
-
May 27th, 1999, 08:01 AM
#2
Re: How can I see each item in different color in CTreeView?
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
,,,^..^,,,
-
May 27th, 1999, 08:15 AM
#3
Re: How can I see each item in different color in CTreeView?
There is a good example at codeguru (category CTreeView)
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
|