Can anyone suggest a good (eg speedy) way to traverse a multi
level CTreeCtrl ? I have two CTreeCtrl controls, where each level
contains an object type. I need to search for all objects of type X
and InsertItem() under them. The level of these object may or may
not be visible.
X-- Level 1 - Object type A
X-- Level 2 - Object type B
X-- Level 3 - Object type C
X-- Level 1 - Object type A
...
..
.
I need to search for all object type C's and insert something
after/under them. In my first attempt I found the root object
and used the member function GetChildItem() which never returned
anything but big fat 0 for an HTREEITEM.
Can someone suggest perhaps a better method for finding all objects
of a certain type, by somehow traversing the tree ??
Any suggestions would be most appreciated.
Thanks in advance
Peter
____________________________________________________________
CIS: 72274,3254
|||||
( . . )
___________________________ooO____U____Ooo__________________