How do you display explorer native context menu

Off-topic posts of interest to the "Everything" community.
Post Reply
jams
Posts: 35
Joined: Thu Mar 27, 2014 8:36 am

How do you display explorer native context menu

Post by jams »

Hi David,

I'm building an application in C#/WPF that handle files and folders (that rely on Everything SDK) and I'd like to display windows explorer native context menu like you do in Everything interface. Would you point me on an API or library I could use to display this menu?

Thanks,
Julien.
jams
Posts: 35
Joined: Thu Mar 27, 2014 8:36 am

Re: How do you display explorer native context menu

Post by jams »

Replying to myself, I found a very simple library that works fine for me (even if I need to embed Windows.Forms control into my WPF application.
https://github.com/grokys/gong-shell
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do you display explorer native context menu

Post by void »

Everything uses CDefFolderMenu_Create2.

https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
http://www.zabkat.com/blog/08Jul07.htm

You may also like to start with IContextMenu which Everything uses when all items share the same parent folder.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How do you display explorer native context menu

Post by NotNull »

Explorer++, an alternative for the Explorer file manager, is open source. It is written in C++ (IIRC). I'm no programmer, but maybe you can re-use that code for your project.

(https://explorerplusplus.com/)
Post Reply