cbpporter Messages: 1405 Registered: September 2007
Ultimate Contributor
Sure!
I created a custom TreeCtrl. Normally, the tree control is designed for a single root kind of structure. Even when not displaying the root node, there is still a line pointing upwards and it looks like a tree.
My change is about making it behave like a list of trees. Each entry in that list is a root of a tree, but they do not have a parent. I also changed the way lines are displayed for children nodes, enhanced IMHO for minor aesthetics.
In my particular case, I use this tree control to display folders from a classpath. That's why some folders are amrked with an "x", to show that they are invalid.
I implemented this only changing a few lines in the TreeCtrl::Paint override.
If you wish, I can give you the exact members than need to be made protected.
cbpporter Messages: 1405 Registered: September 2007
Ultimate Contributor
Oh, I see now.
Using "imgEmpty" for size calculations is indeed better.
As for calling NoRoot, this will have the side effect of forcing the display of the empty node icon for all users who call NoRoot right? That's partially why I added a new flag.