CTreeCtrl Drop Highlight Node
-
Hi, I am using MFC MDI uses CTreeCtrl,when i drag and drop an item from one tree to the another tree i have three options TVI_LAST,TVI_FIRST and TVI_SORT but in my case i need to drop item where i placed the mouse please see this image http://www.codeproject.com/KB/tree/treeviewadv/treeviewadv2.png[^] like this, for this what i need to do? Thanks in Advance, Ratheesh.
-
Hi, I am using MFC MDI uses CTreeCtrl,when i drag and drop an item from one tree to the another tree i have three options TVI_LAST,TVI_FIRST and TVI_SORT but in my case i need to drop item where i placed the mouse please see this image http://www.codeproject.com/KB/tree/treeviewadv/treeviewadv2.png[^] like this, for this what i need to do? Thanks in Advance, Ratheesh.
-
You can just insert it after the item above where you want to insert it. You are not limited to the TVI_* positions.
You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!
i need to insert item in a selected position eg: if i have tree having one root and five child i need to add new item in the 3rd position but now i can only add it as a first or last item in my child (1st or 6th).
-
i need to insert item in a selected position eg: if i have tree having one root and five child i need to add new item in the 3rd position but now i can only add it as a first or last item in my child (1st or 6th).