CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Posts
    2

    Hide Tree Ctrl Item

    Is there a way to hide a tree control item (without deleting it)?

    Thanks.

  2. #2
    Join Date
    Sep 1999
    Posts
    137

    Re: Hide Tree Ctrl Item

    Code:
        CWnd* pTree = GetDlgItem( IDC_TREE1 );
        pTree->ShowWindow( SW_HIDE );

  3. #3
    Join Date
    Sep 1999
    Posts
    137

    Re: Hide Tree Ctrl Item

    Oops. Never mind.

    I didn't see tree control ITEM.

  4. #4
    Join Date
    May 2005
    Location
    Oregon
    Posts
    3,725

    Re: Hide Tree Ctrl Item

    I don't think Soo That you can Hide a Tree Control SubItem . But yes you can do another thing like make a raay for all the items store the value of tree item in That and construct your tree with the help of array items.

    and if you want to Hide any Item .Simply for which item you want to hide it from the tree mark it as hide in array and reconstcut your tree with your array item.

    Thanx

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