|
-
March 30th, 1999, 08:46 AM
#1
How can I get the count of child item in CTreeCtrl
When user selected an item in the tree view control, How could I get the count of child items attarched to the item which user selected?
HTREEITEM hUserSelectItem = m_TreeCtrl.GetSelectdItem();
What's the next step?!
HTREEITEM contained the child information of an item?!
By the way, where can I look for about the information of HTREEITEM ?!
( On-lin Help??? Oh.......poor)
-
March 30th, 1999, 08:55 AM
#2
Brute force
I don't think there's a call to count child items. You'll have to implement your own function using CTreeCtrl::ItemHasChildren(), CTreeCtrl::GetChildItem(), and CTreeCtrl::GetNextSiblingItem(). Actually, the online help for CTreeCtrl is pretty thorough.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|