CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Posts
    342

    Easy way to traverse a tree control?

    I need to read the text labels of all items in a tree control. I don't care at all about the parent/child relationships.

    Is there an easy way to get thru all the items?

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    If you can limit yourself to the expanded (and hence visible) items, you can use GetNextVisibleItem() to traverse the tree. Otherwise, you will have to use recursion (which is not a great deal, however).

  3. #3
    Join Date
    Feb 2001
    Posts
    342

    unfortunately I cant'

    limit it to the visible items. Thought of that already with my humble brain :-)

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