dwmkerr / sharpshell

SharpShell makes it easy to create Windows Shell Extensions using the .NET Framework.
MIT License
1.52k stars 260 forks source link

SharpDropHandler; Right Mouse Button; Context Menu #182

Open hafstrom opened 6 years ago

hafstrom commented 6 years ago

Is this library able to add items to the context menu that pops up when using the right mouse button to drag items into a directory/drive?

The functionallity I'm looking for is pretty much the same as for example 7-zip when I drag an archive with the right mouse button and it shows various options.

Been trying with the SharpDropHandler and SharpContextMenu but can't get it to work in any way. I'm using [COMServerAssociation(AssociationType.Directory), COMServerAssociation(AssociationType.Drive)]

Countryen commented 6 years ago

I am not sure, but maybe you want to check out what the documentation says about here: https://docs.microsoft.com/de-de/windows/desktop/shell/context-menu-handlers#creating-drag-and-drop-handlers

Should be easy enough to do it yourself if ContextMenuHandlers are working fine.

Hope you find a solution, would be thankful for sharing information, too.

dwmkerr commented 6 years ago

Hi @hafstrom can you show an animated gif or something explaining what you mean? From the way you've described it it sounds just like a context menu handler, but I might be missing something.

dwmkerr commented 6 years ago

@hafstrom Quick thought, is what you are looking for the same as the below:

https://docs.microsoft.com/en-gb/windows/desktop/shell/context-menu-handlers#creating-drag-and-drop-handlers

Countryen commented 5 years ago

Hey @hafstrom, this issue is rather old and you haven't come back to it after me and dwmkerr answering. Is this still a problem / open issue for you? If you found a solution, feel free to share it. I will add it to the docs, if it's new info.

makuhlmann commented 1 month ago

Hi, I'm now facing the same challenge as @hafstrom, trying to add a context menu item to the right click drag & drop menu. For reference, this is what it looks like on my system:

image

A classic SharpContextMenu item does not appear in that list, only in a normal right click context menu.