Solved

hw to delete all the childs in TreeCtrl

Posted on 2003-11-30
6
260 Views
Last Modified: 2013-11-20
Hw to delete all its  childs  and subchilds in TreeCtrl when that item is collapsed
0
Comment
Question by:sarath83
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 30 total points
ID: 9848291
You can use the function DeleteItem with a HTREEITEm.
if you want to delete all items use the function "DeleteAllItems()"
0
 

Author Comment

by:sarath83
ID: 9848374
i have the Images attached to each item wil this work if images r attachted.
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9848392
Yes
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sarath83
ID: 9848400
I need to Delete Only the childs of the root but not the root item.
0
 

Author Comment

by:sarath83
ID: 9848435
Thaks roshman I got it .
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9848500
:)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 174
List out all word 7 338
Is there a simple front-end menu system. 9 123
x-bar in Google Sheets 2 97
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question