How to add a menu item (in right click menu) to ex

2019-01-29 01:40发布

问题:

When Winrar installed, and user right click on a file, a new mune item exists: "Add to Archive..."

How can do like this for my application?

回答1:

This can be done by adding a shortcut (context) menu handler.

  • A static handler by setting it up in registry
  • Or, a fully featured dynamic handler, which is a COM object implementing necessary interfaces to advertise verbs and handle their invocations

See also:

  • Choosing a Static or Dynamic Shortcut Menu Method
  • The Complete Idiot's Guide to Writing Shell Extensions - Part I on CodeProject


回答2:

You register under *.