How to drag a node from treeview to listbox in MFC. What is the event ?
-
I want to drag and drop a file on treeview to a listbox.But i only drag item only on treeview but i can't drag outside treeview control. Can't you help me ? Many thanks
-
I want to drag and drop a file on treeview to a listbox.But i only drag item only on treeview but i can't drag outside treeview control. Can't you help me ? Many thanks
You must implement drag support on the source (TreeView) and drop support on the target (ListBox). With MFC this can be done using OLE Drag and Drop[^]. Tree Views have basic drag support and it seems that you already got it working. So you have to implement the drop support to your List Box. There are some articles here at CodeProject that might be helpful: http://www.codeproject.com/search.aspx?q=mfc+drag+drop&x=0&y=0&sbo=kw[^]