我现在用一个单文档的窗口分割成两个小窗口,其视分别从CTreeView和CListView继承,现在我想实现这两个窗口间的拖放,
我是菜鸟,做很久了,总是想不出来怎么做了,那位大侠帮帮忙啊,给出例子最好

解决方案 »

  1.   

    http://support.microsoft.com/kb/148738/MFCDRAG shows how to implement drag and drop between a CListCtrl and CTreeCtrl
    SUMMARYMFCDRAG shows how to implement drag and drop between a CListCtrl and CTreeCtrl. The program creates a splitter window containing four panes. Two panes contain CListCtrls and the other two contain CTreeCtrls. You can drag an item from any window to another. For example, dragging can occur between the following panes: 
    CListCtrl to CTreeCtrl
    CListCtrl to CListCtrl
    CTreeCtrl to CListCtrl
    CTreeCtrl to CTreeCtrl
      

  2.   

    http://www.codeproject.com/listctrl/dragtest.asp
      

  3.   

    上面MFCDRAG的例子里已经实现了CTreeCtrl和CListCtrl,难道还实现不了CTreeView和CListView