为所有桌面快捷方式(Windows 资源管理器)的自定义右键单击上下文菜单项设置图标 [英] Set icon for custom right-click context menu item for all desktop shortcuts (windows explorer)

查看:69
本文介绍了为所有桌面快捷方式(Windows 资源管理器)的自定义右键单击上下文菜单项设置图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习了如何将项目添加到右键单击上下文菜单中,但我也想添加一个图标.我测试了给key加一个值Icon(假设key是HKCL\lnkfile\shell\MY COMMAND\command,我把icon值加到HKCL\lnkfile\shell\MY COMMAND)但是不行,我把它里面的图标的路径,但它是 32x32,也许是这个问题可能没有...有人知道如何在我的菜单项中添加一个图标吗?

I learned how to add an item to the right-click context menu, but I would like to add an icon too. I tested adding a value Icon to the key (imagine that the key is HKCL\lnkfile\shell\MY COMMAND\command, I added the icon value to HKCL\lnkfile\shell\MY COMMAND) but it doesn't work, I put the path to the icon inside it but it's 32x32, maybe is that the problem maybe no... do someone know how to add an icon to my menu item?

感谢您的回答

推荐答案

这可能是一个长镜头,但尝试在 HKCL\lnkfile\shell\MY COMMAND 键,然后将值设置为图标的路径(例如 C:\Program Files\Your Program\YourProgram.exe,0),假设您的图标嵌入在您指定的任何应用程序中在您的命令中运行.

This might be a long shot, but try creating a String value named "Icon" under the HKCL\lnkfile\shell\MY COMMAND key, and then set the value to the path to your icon (e.g. C:\Program Files\Your Program\YourProgram.exe,0), assuming your icons are embedded in whatever application you specified to run in your command.

这篇关于为所有桌面快捷方式(Windows 资源管理器)的自定义右键单击上下文菜单项设置图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆