By Tadas Budvytis
Here is a simple demo of Outlook style treeview.
Under Outlook style i mean treeview with additional information like, how many unread mails left in the folder.
Such info usually is painted in different color. e.g. blue.
To look standart TreeView like MS treeView We must to:
1. Handle events sent from TreeView to his parent e.g. panel or Form
2. Paint additional information.
in the demo project for such purposes are created two functions
1. void WndProc(ref Message m)
And
2. void TreeViewPaint(ref Message m)
In demo project both these functions are in Form class.
In real world TreeViewPaint shall be in subclassed TreeView control
and WndProc in his parent.
Download treeview.zip