TreeView allows for both of the approaches. I personally did custom node
drawing, as drawing all these connecting lines and [+] icons myself would be
such a pain! More than that, you can tell the TreeView to paint a node, and
then add something to what was painted by the tree view itself (it's exactly
what I did). If we take Outlook Express an an example, and assume there is
no need to have bold-face nodes, we should let the standard treeview to draw
the node text and the node icon, and then we will draw the number in
parenthes ourselves by using different color.
Please refer to the NM_CUSTOMDRAW notification message documentation - it
explains all custom drawing stages in detail.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
woodBeeProgrammer said:
thanks for the response, but i'm not clear what you mean or what you did in
your Outlook bar type application.
Does the TreeView draw its window as a whole, or is it done node by node?
Can i write code for just one node, or do i need to manage the whole window?
TIA!