listctrl拖放到Windows资源管理器,我如何获取目标路径 [英] listctrl drag and drop to the windows explorer ,How Can I Get The Target Path

查看:166
本文介绍了listctrl拖放到Windows资源管理器,我如何获取目标路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我,我怎样才能获得关于拖放到窗口的目标路径。

who can tell me ,how can i get the target path about drag and drop to the windows.

推荐答案

我认为这可能对你有帮助。



使用MFC对文件列表进行拖放,剪切,复制和粘贴操作 [ ^ ]



HTTP: //www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c4145/Using-MFC-For-Drag--Drop-Cut-Copy-and-Paste.htm [ ^ ]
I think this might help you.

Drag, drop, cut, copy and paste operations on lists of files using MFC[^]

http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c4145/Using-MFC-For-Drag--Drop-Cut-Copy-and-Paste.htm[^]


listctrl拖放t o windows explorer.not windows explorer to listctrl。



感谢您的回答。
listctrl drag and drop to the windows explorer.not windows explorer to listctrl.

thanks for your answers.


来自MSDN文章的引用< a href =http://msdn.microsoft.com/en-us/library/windows/desktop/bb776904.aspx>处理Shell数据传输方案 [ ^ ]:

A cite from the MSDN article Handling Shell Data Transfer Scenarios[^]:
Quote:

通常,drop source无法知道其数据对象被丢弃的文件夹。

Normally, a drop source has no way of knowing which folder its data object has been dropped on.

此引用来自回收站上的删除文件部分,该部分定义了在回收站虚拟文件夹中放置唯一的例外,其中资源管理器创建 CFSTR_TARGETCLSID 拖动源可以读取的对象。

This cite is from the "Dropping Files on the Recycle Bin" section which defines the only exception when dropping on the Recycle Bin virtual folder where the Explorer creates a CFSTR_TARGETCLSID object that can be read by the drag source.


这篇关于listctrl拖放到Windows资源管理器,我如何获取目标路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆