在同一个界面,实现从一个CListCtrl的item 拖到另一个  CListCtrl 的item  ,要求代码!

解决方案 »

  1.   

    http://www.codeproject.com/KB/list/dragtest.aspx
      

  2.   

    果然如此:
    C:\Documents and Settings\qpsoft>ping 192.168.5.0110Pinging 192.168.5.72 with 32 bytes of data:晕倒!
      

  3.   

    WM_DROPFILES   
        
        
      void   CListCtrlEx::OnDropFiles(HDROP   hDropInfo)     
      {   
      //   TODO:   Add   your   message   handler   code   here   and/or   call   default   
      TCHAR   tch[MAX_PATH];   
        
      int   iCnt   =   ::DragQueryFile(hDropInfo,0xFFFFFFFF,   
      NULL,   0);   
      for   (int   i   =   0;   i   <   iCnt;   i++)   
      {   
                                          memset(tch,   0,   sizeof   TCHAR   *   MAX_PATH);   
      ::DragQueryFile(hDropInfo,   i   ,   
      tch,   MAX_PATH);   
      AfxMessageBox(tch);   
      }   
        
      ::DragFinish(hDropInfo);   
      CListCtrl::OnDropFiles(hDropInfo);   
      }
      

  4.   

    中文版的CListCtrl拖放代码例子
    http://www.vckbase.com/document/viewdoc/?id=1302
      

  5.   

    http://www.codeproject.com/KB/list/dragtest.aspx
    就是vc6.0的代码