How do you display explorer native context menu

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

How do you display explorer native context menu

Postby jams » Tue Oct 17, 2017 8:12 pm

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: 11
Joined: Thu Mar 27, 2014 8:36 am

Re: How do you display explorer native context menu

Postby jams » Wed Oct 18, 2017 9:18 pm

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
Site Admin
Posts: 3619
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do you display explorer native context menu

Postby void » Sat Oct 21, 2017 4:43 am

Everything uses CDefFolderMenu_Create2.

https://msdn.microsoft.com/en-us/library/windows/desktop/bb776389%28v=vs.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: 269
Joined: Wed May 24, 2017 9:22 pm

Re: How do you display explorer native context menu

Postby NotNull » Sat Oct 21, 2017 4:06 pm

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/)


Return to “Off-topic discussion”