Windows 上下文菜单外壳图标 [英] Windows Context menu shell icon

查看:53
本文介绍了Windows 上下文菜单外壳图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用注册表和键创建了一个新的 Windows shell 上下文菜单项

I have created a new Windows shell context menu item using registry and keys

HKLM\Software\Classes\Folder\shell\appname
HKLM\Software\Classes\Folder\shell\appname\command

现在我想给这个命令添加一个图标.我该怎么做?

now I want to add an icon to this command. How I do that?

推荐答案

Windows 7 添加了对静态(注册表)动词的图标(和子菜单)的支持,在 HKCR\%ProgID%\shell 下添加名为Icon"的 REG_SZ 值\%动词%

Windows 7 added support for icons (and submenus) for static (registry) verbs, add a REG_SZ value named "Icon" under HKCR\%ProgID%\shell\%verb%

在 <= Vista 上,您需要一个 shell实现 IContextMenu 的扩展,参见 this博客条目有关您可以使用哪些图标/位图格式的信息...

On <= Vista you need a shell extension that implements IContextMenu, see this blog entry for information about which icon/bitmap formats you can use...

这篇关于Windows 上下文菜单外壳图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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