Similar to the ButtonRenderer
class, I want to be able to paint the +/- buttons used in TreeViewNodes
completely separately to any instance of a TreeView
. There doesn't seem to be a ControlPaint
method that does it, and drawing a Button doesn't look right. Where can I get the drawing code for a treeview node from?
views:
77answers:
1
+1
A:
You can draw most parts of the standard Windows controls using the Windows visual styles API.
I haven't tried rendering a tree view control, but take a look at the .NET VisualStyleRenderer
class, which appears to wrap all of the functionality of the unmanaged API.
Tim Robinson
2010-03-08 18:27:55
The link to the TreeView glyphs: http://msdn.microsoft.com/en-us/library/system.windows.forms.visualstyles.visualstyleelement.treeview.glyph(v=VS.90).aspx
overslacked
2010-03-08 18:56:11