CXTTreeCtrl Background and text colors |
Post Reply |
Author | ||
aamirzia
Newbie Joined: 07 December 2006 Status: Offline Points: 22 |
Post Options
Thanks(0)
Posted: 07 January 2007 at 4:16am |
|
Hi All,
I am using CXTTreeCtrl and i want to change the background color of the whole tree ctrl(not only the selected items) and also the text color(when tree item is selected or unselected both cases).
Please help me out, i was unable to find any such api in CXTTreeCtrl class.
Thanx
Aamir
|
||
danpetitt
Senior Member Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
|
|
There are some overrides you can use to specify a text colour ... GetTextColor I think which passes in an HTREEITEM so you can decide what it should be.
As for tree background colour, I think there is one for that as well.
|
||
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
|
Hello,
You can use the following base class members to set and get text and background colors for the tree control:
Example:
Hope this helps.
Codejock Support
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |