Solved

Adding a node in a tree control

Posted on 2004-04-05
5
227 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:
mayankeagle 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:mayankeagle
ID: 10926632
Please proceed with that recommendation.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
This is about my first experience with programming Arduino.
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now