Shell 菜单项分隔符

发布于 2024-08-16 03:06:45 字数 329 浏览 1 评论 0原文

我的问题可能是这里重复的问题,但即使在谷歌搜索后我还没有得到解决方案。

我为文件添加了一个 shell 上下文菜单项,即当您右键单击资源管理器中的文件时,菜单会显示我的自定义菜单项。

我用过 -

HKLM\Software\Classes*\shell\myappname HKLM\Software\Classes*\shell\myappname\command

但我无法做的是在该上下文菜单中添加分隔符。

我正在使用 C# 2005 创建 Windows 应用程序。

有人可以帮助解决我的问题吗?

感谢您分享您的宝贵时间。

My question may be the repeated one here but even after googling i havn't got the solution yet.

I have added a shell context menu item for files i.e. when you right click on a file within explorer the menu shows my custom menu item.

I have used -

HKLM\Software\Classes*\shell\myappname
HKLM\Software\Classes*\shell\myappname\command

But what i am not able to do is to add a separator within that context menu.

I am using C# 2005 for creating my windows application.

Could someone help solve my problem.

Thanks for sharing your valuable time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

瀞厅☆埖开 2024-08-23 03:06:45

您需要创建一个 shell 上下文菜单处理程序来完全控制上下文菜单内容。在 .NET 4.0 广泛使用之前,您不应该用 C# 编写此代码。现在您可以使用 C++,此网页有一个示例。包装器此处描述,不知道是否可以有什么好处吗?

You'll need to create a shell context menu handler to take full control over the context menu content. You should not write this in C# until .NET 4.0 becomes widely available. For now you can use C++, this web page has an example. A wrapper is described here, no idea if it is any good.

2024-08-23 03:06:45

查看以下链接:扩展快捷菜单
我认为没有关键字可以添加分隔符,而是在同一级别创建新条目。新的条目集将出现在新组中。

Check out the following link: Extending Shortcut Menus
I think there is no keyword to add a separator but to create a new entry at the same level. The new set of entries will appear in a new group.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文