请问一下,VC文件拖放功能的实现怎么实现?
能给点提示?

解决方案 »

  1.   

    重载Windows的OnDropFile()消息
      

  2.   

    响应WM_DROPFILES消息并处理WM_DROPFILES
    Sent when the user drops a file on the window of an application that has registered itself as a recipient of dropped files.WM_DROPFILES 
        hDrop = (HDROP) wParam; Parameters
    hDrop 
    Handle to an internal structure describing the dropped files. Pass this handle DragFinish, DragQueryFile, or DragQueryPoint to retrieve information about the dropped files. 
    Return Values
    An application should return zero if it processes this message.