Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding a node in a tree control

Posted on 2004-04-05
5
Medium Priority
?
238 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 252 total points
ID: 10756705
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 248 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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…
Screencast - Getting to Know the Pipeline

972 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