
Set Treeview Nodes to different TextColor
Hi, JG
I don't believe you can do this effectively in a pure VB environment. I
believe that C++ controls do this by drawing the visible portion directly
(owner draw) rather than using the functionality built into the treeview
control.
You will be much better off finding a 3rd party control that provides the
functionality you need.
HTH,
John Eikanger
Microsoft Visual Basic Developer Support
This posting is provided AS IS with no warranties, and confers no rights.
(c) 2002 Microsoft Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| Subject: Set Treeview Nodes to different TextColor
| Date: Thu, 7 Mar 2002 07:44:28 -0800
| Lines: 10
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
| Thread-Index: AcHF7vdX7r3diaNnRxOBFkTSK2mQkA==
| Newsgroups: microsoft.public.vb.controls
| Path: cpmsftngxa09
| Xref: cpmsftngxa09 microsoft.public.vb.controls:126948
| NNTP-Posting-Host: TKMSFTNGXA14 10.201.226.42
| X-Tomcat-NG: microsoft.public.vb.controls
|
| Using VB6, trying to use more than one text color on the
| treeview nodes. Node one is Blue, Node two is Red for
| example. I know that this can be done using c++, and that
| the VB Treeview is a wrapper around the c++ version. I
| can get a handle to the TreeView.Node(TV_ITEM) and I
| attempt to SendMessage a message via:
| "Call SendMessage(hItem, TVM_SETTEXTCOLOR, 0, ByVal
| clrref)"
| Anybody know if this can successfully be done?
| Thanks
|