Solved

Adding a node in a tree control

Posted on 2004-04-05
5
228 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
scoreUp challenge 14 56
mapAB Challlenge 35 123
Tviruailstringtree sort multi columns on header click 1 50
Help to convert powershell script into a gui 9 133
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

937 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

Need Help in Real-Time?

Connect with top rated Experts

1 Experts available now in Live!

Get 1:1 Help Now