A Question on CTreeCtrl
-
Hi I am beginner in VC++. I have got a CTreeCtrl in my application from which I want to delete HTREEITEMs upon press of delete key. First I proceed to delete the related data structure for the HTREEITEM selected. Then I proceed to delete the HTREEITEM using the DeleteItem(HTREEITEM) method. If the HTREEITEM to be deleted is a folder with numerous sub items with in it, do i need to delete all sub items individually before deleting the parent HTREEITEM ? OR could i directly delete the parent HTREEITEM ? Please help me out on this. Thank You, Jayanand.
-
Hi I am beginner in VC++. I have got a CTreeCtrl in my application from which I want to delete HTREEITEMs upon press of delete key. First I proceed to delete the related data structure for the HTREEITEM selected. Then I proceed to delete the HTREEITEM using the DeleteItem(HTREEITEM) method. If the HTREEITEM to be deleted is a folder with numerous sub items with in it, do i need to delete all sub items individually before deleting the parent HTREEITEM ? OR could i directly delete the parent HTREEITEM ? Please help me out on this. Thank You, Jayanand.
Hi :) You can handle the TCN_DELETEITEM message that the tree control will send whenever an item is deleted ... this will happen for each child item after you delete a parent item manually. sorry this answer is a bit brief. Nick
-
Hi I am beginner in VC++. I have got a CTreeCtrl in my application from which I want to delete HTREEITEMs upon press of delete key. First I proceed to delete the related data structure for the HTREEITEM selected. Then I proceed to delete the HTREEITEM using the DeleteItem(HTREEITEM) method. If the HTREEITEM to be deleted is a folder with numerous sub items with in it, do i need to delete all sub items individually before deleting the parent HTREEITEM ? OR could i directly delete the parent HTREEITEM ? Please help me out on this. Thank You, Jayanand.
Hi :) You can handle the TCN_DELETEITEM message that the tree control will send whenever an item is deleted ... this will happen for each child item after you delete a parent item manually. You can delete the data for a child item when this message is sent. sorry this answer is a bit brief. Nick
-
Hi :) You can handle the TCN_DELETEITEM message that the tree control will send whenever an item is deleted ... this will happen for each child item after you delete a parent item manually. You can delete the data for a child item when this message is sent. sorry this answer is a bit brief. Nick