Solved

Change color and font of CTreeCtrl item.

Posted on 2003-11-10
8
1,490 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
  • 3
  • 2
8 Comments
 
LVL 44

Expert Comment

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

Expert Comment

by:KurtVon
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 11

Expert Comment

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

Author Comment

by:sergtr
Comment Utility
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
Comment Utility
What doesn't work?  Post the code you wrote and maybe it can be figured out.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now