Solved

Change color and font of CTreeCtrl item.

Posted on 2003-11-10
8
1,544 Views
Last Modified: 2013-12-03
Please let me know if there is a way to change color and font of CTreeCtrl item. Tree control is pu on the view (not in dialog).

The similar qiestion is how to make tree control item disabled.

Thanks in advance

Sergei
0
Comment
Question by:sergtr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 9715211
A tree control has functions SetTextColor and SetBkColor.  Are they not suitable?
0
 
LVL 11

Expert Comment

by:KurtVon
ID: 9715330
If the built in functions don't offer enough control, perhaps something more like this: http://www.codeproject.com/treectrl/colortreectrl.asp would work?

Hope this helps.
0
 

Author Comment

by:sergtr
ID: 9715817
SetTextColor and SetBkColor methods are related to whole CTreeCtrl but the question is regarding to certain item...
http://www.codeproject.com/treectrl/colortreectrl.asp  is example, which doesn't work in a view properly.

Thanks,

Sergei
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
LVL 11

Expert Comment

by:KurtVon
ID: 9715908
Create a CCtrlView and put the alternative tree control on that.
0
 

Author Comment

by:sergtr
ID: 9715930
It's exactly that has been done... unfortuantely it doesn't work properly...

Thanks,
Sergei
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 250 total points
ID: 9715957
What doesn't work?  Post the code you wrote and maybe it can be figured out.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question