Click to See Complete Forum and Search --> : TreeCtrl


Shine B.
April 16th, 1999, 09:23 AM
Is it possible to just hide a tree node ( and all its children) in a tree control but NOT to delete it from the tree?

Thanks.-- Shine

klussier
April 17th, 1999, 05:37 AM
I believe that if you call the Expand() command with the collapse option (TVE_COLLAPSE), you should get the result you want. Be careful not to use the TVE_COLLAPSERESET as that will actually delete the tree items.

Kevin

Shine B.
April 17th, 1999, 05:36 PM
I should have stated my question more clearly. Consider the following tree:
[+]--A
|
----B
What I want to do is to only hide ONE specific tree node, say B. Is it possible?
Thanks. Shine B.