Override Drag and drop for Shell Extension

橙三吉。 提交于 2019-12-05 10:45:49

问题


I am working on a ShellExtension code in C++. I am creating a Virtual Drive. Which represents a repository somewhere in the Network. What I want now is to enable Drag-Drop functionality to this Drive. I want to enable user to drag the file to that Virtual Drive and then I must be able to Grab that event, so that I can perform my custom operation. I am not able to find any of such Event or Interface so far. I tried using IDragAndDrop interface, but its rgs files were not registering properly. Is there any way out?


回答1:


What you ask for is covered in MSDN's documentation:

Handling Shell Data Transfer Scenarios

Implementing the Basic Folder Object Interfaces (in particular, IShellFolder::GetUIObjectOf() can return an IDataObject or IDropTarget interface)

Creating Drop Handlers



来源:https://stackoverflow.com/questions/1177384/override-drag-and-drop-for-shell-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!