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?
Printable View
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?
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).
limit it to the visible items. Thought of that already with my humble brain :-)