怎么监视用户从Explorer中的拖拽(Drag and Drop)操作
比如. 用户从C:盘 拖拽 文件 到D:盘. 我怎么知道他进行了这样的操作

解决方案 »

  1.   

    难道莫非岂不是处理WM_DROPFILES消息
    Handle to an internal structure describing the dropped files. Pass this handle DragFinish, DragQueryFile, or DragQueryPoint to retrieve information about the dropped files. 
      

  2.   

    shell  扩展里的 拖放目标处理器 已经包含这方面的东西了。请参看 Windows Shell扩展编程完全指南 里的
    第四节 - 如何编写提供定制拖放功能的Shell扩展
      

  3.   

    请问
    那我怎么能把 改变 用户通过Drag & Drop所选的文件呢. 
    我找不到相应的可实现函数啊. 
    如 : 用户在 C:盘 选了. 1.txt, 2.txt, 3.txt. 我通过监视知道了用户所选文件. 但我不想用户对这些文件进行拖拽, 那我怎么取消这些已经选定的文件啊. 或者我可以控制他只能选1.txt. 有什么好方法呢???