Tree Control problem
-
Hi, I have a tree control in document/view architecture. When an item is collapsed and expanded by clicking + sign, all children nodes are re-enumerated and added. This works fine when I collapse and expand any item by hand (manually). But if i do it programatically, i.e. by sending TVE_EXPAND, and TVE_COLLAPSE messages the child nodes are just made invisible and visible again. How do i simulate a real collapse and expand to a node? Thanks
-
Hi, I have a tree control in document/view architecture. When an item is collapsed and expanded by clicking + sign, all children nodes are re-enumerated and added. This works fine when I collapse and expand any item by hand (manually). But if i do it programatically, i.e. by sending TVE_EXPAND, and TVE_COLLAPSE messages the child nodes are just made invisible and visible again. How do i simulate a real collapse and expand to a node? Thanks
a_b_pathak wrote:
When an item is collapsed and expanded by clicking + sign, all children nodes are re-enumerated and added.
Huh ??? me not understand what you are writing; what do you mean by re-enumerated ? Are you filling the children as soon as you expand the parent or is the tree completely filled at some point ? When the + is clicked, the sub-tree will either collapse and will hide the items (children) under that parent ITEM or will expand and show all items (children) under that parent ITEM. If the children are already inserted they will only be shown/hide depending on the collapse state of the parent.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
a_b_pathak wrote:
When an item is collapsed and expanded by clicking + sign, all children nodes are re-enumerated and added.
Huh ??? me not understand what you are writing; what do you mean by re-enumerated ? Are you filling the children as soon as you expand the parent or is the tree completely filled at some point ? When the + is clicked, the sub-tree will either collapse and will hide the items (children) under that parent ITEM or will expand and show all items (children) under that parent ITEM. If the children are already inserted they will only be shown/hide depending on the collapse state of the parent.
Maximilien Lincourt Your Head A Splode - Strong Bad
Oh, i'm actually showing contents of file system in treeview. So, every time a node is collapsed and expanded, the subfolders are re-enumerated and added. This will let user see if new folders have been created.