Solved

Adding a node in a tree control

Posted on 2004-04-05
5
230 Views
Last Modified: 2010-05-18
How can I insert an item under a selected node using CTreeCtrl class functions
0
Comment
Question by:Gopakumar
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 63 total points
ID: 10756705
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 62 total points
ID: 10756722
HTREEITEM parent = pTreeCtrl->GetSelectedItem();

if ( parent )
{
    pTreeCtrl->InsertItem( "New item", parent);
}
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10926632
Please proceed with that recommendation.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …

839 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