Drag and Drop tree view items
-
I noticed, just today, that IE has an interesting feature when organizing your favourites list. What I noticed is a line appears under an entry when you drag over it. It appears that the line is indicating where the item will be dropped. What this means to me is that a folder can be repositioned within the list rather than becoming a child of the target. I would like to do the same thing but have no idea how. I see this same type of thing in other products, Netscape and DemoShield. Can anyone help me? Try it yourself if you have not experienced this yet!
-
I noticed, just today, that IE has an interesting feature when organizing your favourites list. What I noticed is a line appears under an entry when you drag over it. It appears that the line is indicating where the item will be dropped. What this means to me is that a folder can be repositioned within the list rather than becoming a child of the target. I would like to do the same thing but have no idea how. I see this same type of thing in other products, Netscape and DemoShield. Can anyone help me? Try it yourself if you have not experienced this yet!
Check these methods: CTreeCtrl::SetInsertMark CTreeCtrl::SetInsertMarkColor They're simple wrappers around TVM_SETINSERTMARK and TVM_SETINSERTMARKCOLOR messages, supported on COMCTL version 4.71 and later. Basically this means that target machine must have IE 4.0 or later installed. Tomasz Sowinski http://www.shooltz.com.pl