Monday, 26 August 2013

how to hide a tree item in the CTreeCtrl?

how to hide a tree item in the CTreeCtrl?

Is it possible to hide an item (and the complete subtree under it) so that
the item is actually there in the tree but its invisible.
For example, for the following tree :
A
|
|---B
|
|---C
I want to hide the item B so that it looks like
A
|
|---C
Item B is still a child of A but is not visible in the tree.
Is it possible to do so. If yes, how??
note: I can do it by inserting and deleting in tree but in my case this
hidding/showing is too frequent hence wants to avoid.

No comments:

Post a Comment