Is there a simple way to determine on which tree level you are when a tree-part is clicked on a TreeView? (Or do I have to use Treeview_Getparent to determine the level)
I want to restrict the tree to 4 levels. (users may not add more levels)
Also: how to detemine the number of entries on a tree-node. (need to limit number of entries). Tried Treeview_GetnextItem, but always get all child items of a node as result.
(I only want to get one child node's number of entries; and not from sub-nodes from that child)
Another question that arises: I've got 2 listviews an 2 treeviews. They all use the same icons. Is it possible to share one imagelist between those controls, or do I have to create four (identical) imagelists?
Seems a waste of resources....
------------------
Peter.
mailto
[email protected][email protected]</A>
[This message has been edited by Peter Lameijn (edited July 16, 2000).]
I want to restrict the tree to 4 levels. (users may not add more levels)
Also: how to detemine the number of entries on a tree-node. (need to limit number of entries). Tried Treeview_GetnextItem, but always get all child items of a node as result.

(I only want to get one child node's number of entries; and not from sub-nodes from that child)
Another question that arises: I've got 2 listviews an 2 treeviews. They all use the same icons. Is it possible to share one imagelist between those controls, or do I have to create four (identical) imagelists?
Seems a waste of resources....
------------------
Peter.
mailto

[This message has been edited by Peter Lameijn (edited July 16, 2000).]
Comment