Sign in to follow this  

MFC: Change HTREEITEM's parent.

Recommended Posts

I'm writing an app in MFC that has a treeview that can drag/drop onto itself using OLE drag operations. Point is, at the end I have a function to implement:
void CMyTreeCtrl::MoveItem(HTREEITEM hToMove, HTREEITEM hNewParent)
I've looked everywhere in the documentation and all over the web, and I can't find any documentation on how to make this happen. If possible, I want to avoid manually cloning the entire tree under hMove inside of hNewParent and then deleting hMove and its children. How do you move a treeview item in MFC or Win32?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this