How to add a menu item (in right click menu) to explorer for all files (*.*)?

醉酒当歌 提交于 2019-12-18 09:25:53

问题


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 *.



来源:https://stackoverflow.com/questions/7696736/how-to-add-a-menu-item-in-right-click-menu-to-explorer-for-all-files

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