Oct 14, 2001 #1 tabaar Programmer Jun 12, 2001 34 US Subj. I need to get every HTREEITEM from CTreeCtrl in loop. Can You post the code how to make it? Great thanx!
Subj. I need to get every HTREEITEM from CTreeCtrl in loop. Can You post the code how to make it? Great thanx!
Oct 15, 2001 #2 Guest_imported New member Jan 1, 1970 0 void EnumTreeItems(CTreeCtrl *aTree,HTREEITEM hItem) { HTREEITEM hItemTmp; while(hItem != NULL){ do something about hItem; hItemTmp = aTree->GetChildItem(hItem); if (hItemTmp)EnumTreeItems(aTree,hItemTmp); hItem = aTree->GetNextSiblingItem(hItem); } } Upvote 0 Downvote
void EnumTreeItems(CTreeCtrl *aTree,HTREEITEM hItem) { HTREEITEM hItemTmp; while(hItem != NULL){ do something about hItem; hItemTmp = aTree->GetChildItem(hItem); if (hItemTmp)EnumTreeItems(aTree,hItemTmp); hItem = aTree->GetNextSiblingItem(hItem); } }