[C] keeping a TreeView always expanded or collapsed

This is a discussion on [C] keeping a TreeView always expanded or collapsed within the Windows Programming forums, part of the Platform Specific Boards category; salutations, how can we use a TreeView/Tree Control so that it is always expanded or collapsed? so that, for example, ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    49

    [C] keeping a TreeView always expanded or collapsed

    salutations,

    how can we use a TreeView/Tree Control so that it is always expanded or collapsed?
    so that, for example, every item we insert to it using the TVM_INSERTITEM message is expanded.

    thank you in advance.

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    Use the TreeView_Expand() function to expand the new nodes.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    49
    Quote Originally Posted by knutso View Post
    Use the TreeView_Expand() function to expand the new nodes.
    thank you for the answer.
    good idea. it worked well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] TreeView: setting a value for an item besides pszText
    By pc2-brazil in forum Windows Programming
    Replies: 2
    Last Post: 09-30-2008, 02:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21