CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: TreeCtrl

  1. #1
    Join Date
    Apr 1999
    Posts
    23

    TreeCtrl

    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


  2. #2
    Join Date
    May 1999
    Posts
    8

    Re: TreeCtrl

    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


  3. #3
    Join Date
    Apr 1999
    Posts
    23

    Re: TreeCtrl

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured