Adding a node in a tree control

How can I insert an item under a selected node using CTreeCtrl class functions
GopakumarAsked:
Who is Participating?
 
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
0
 
AlexFMConnect With a Mentor Commented:
HTREEITEM parent = pTreeCtrl->GetSelectedItem();

if ( parent )
{
    pTreeCtrl->InsertItem( "New item", parent);
}
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Please proceed with that recommendation.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.