Thread: [C] keeping a TreeView always expanded or collapsed

  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