TreeView : How to set a different color to node's Caption 
Author Message
 TreeView : How to set a different color to node's Caption

In Visual C++ and MFC you can create a derived class from CTreeView and
override the OnDraw function. In this function you draw the item in the
TreeView and can change the colors of word, draw bitmaps and icons etc.

Hagit Badash
Lucent Technologies - Octel Messaging Division (Israel)

    Is there any way to sate part of a TreeView node's color, just like the
printer property in winnt?



Sun, 06 Aug 2000 03:00:00 GMT  
 TreeView : How to set a different color to node's Caption

You could do the same thing in Visual Basic by subclassing the treeview and
handling the painting from your own routine.

Good Luck,
Russell Davis

Quote:

>In Visual C++ and MFC you can create a derived class from CTreeView and
>override the OnDraw function. In this function you draw the item in the
>TreeView and can change the colors of word, draw bitmaps and icons etc.

>Hagit Badash
>Lucent Technologies - Octel Messaging Division (Israel)


>    Is there any way to sate part of a TreeView node's color, just like the
>printer property in winnt?



Tue, 08 Aug 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. TreeView : How to set a different color to node's Caption

2. TreeView : How to set a different color to node's Caption

3. TreeView : How to set a different color to node's Caption

4. TreeView : How to set a different color to node's Caption

5. Setting different tooltips for different TreeView nodes

6. Different colors for Treeview nodes?

7. Set Treeview Nodes to different TextColor

8. HOW TO: set color of nodes in TreeView

9. HOW TO: set color of nodes in TreeView

10. Change the color of form's caption (background and font color)

11. setting all foreground and bkground colors to use window's current color setting

12. Adding a node to a treeview from a different thread

 

 
Powered by phpBB® Forum Software