CTreeCtrl question
-
a treectrl such as: [-]Root1 | |_Lay1Item1 | |_Lay1Item2 | [-]Lay1Item3 | |_Lay2Item1 | |_BB +Root2 1>.how to get the item handle by its name/string? 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2
-
a treectrl such as: [-]Root1 | |_Lay1Item1 | |_Lay1Item2 | [-]Lay1Item3 | |_Lay2Item1 | |_BB +Root2 1>.how to get the item handle by its name/string? 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2
(1>.) See
GetNextItem(...);
_**
**_
whitesky
-
a treectrl such as: [-]Root1 | |_Lay1Item1 | |_Lay1Item2 | [-]Lay1Item3 | |_Lay2Item1 | |_BB +Root2 1>.how to get the item handle by its name/string? 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2
1>.how to get the item handle by its name/string? ->I guess you cannot, what if two nodes having same name? Instead try using GetItem and GetNextitem function. 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2 -> SetItemData may help. Regards Abhishake Lahare
-
1>.how to get the item handle by its name/string? ->I guess you cannot, what if two nodes having same name? Instead try using GetItem and GetNextitem function. 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2 -> SetItemData may help. Regards Abhishake Lahare
thank you for your quick reply. about 2> in fact, I'v used SetItemData for manage the handle of MDI docs..... what I want is: aplly different doc template for different lay of item related Doc