3

扩展Win11的新右键菜单

 2 years ago
source link: https://www.cnblogs.com/TianFang/p/15390878.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

升级到Win11后,一个较大的改动是它的右键菜单,传统菜单放到了二级菜单, 一级菜单项少的可怜。虽然我比较喜欢干净的右键菜单,但如解压,打开终端等带单不在一级菜单还是觉得很不方便的。并且传统改注册表的方式无法对win11新右键菜单生效。

找了一下,在微软官方博客Extending the Context Menu and Share Dialog in Windows 11上找到了答案:还是可以通过 Sparse Manifests + IExplorerCommand 接口实现对Win11的右键菜单的扩展。

官方也给了一个示例:SparsePackages /AppModelSamples。看了一下,需要windows 10 SDK和c++的开发环境。暂时比较忙,没空折腾这个,先标记下,有空再看。

在网上搜了一下,V2EX上也有同样需求的人,不过它更近了一步给了一个简单的demo。感兴趣的朋友可以看看。为 windows11 新右键菜单添加自定义菜单 - V2EX


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK