有没有办法超过上下文菜单的16个输入限制? [英] Is there a way to get past the 16 entry limit for context menus?

查看:57
本文介绍了有没有办法超过上下文菜单的16个输入限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过使用资源管理器提供的"ExtendedSubCommandsKey"界面添加级联上下文菜单.但是,当我添加更多项目时,我注意到可以在单个资源管理器"上下文菜单中放置的项目数已被切断为16.

I'm trying to add a cascading context menu through use of the "ExtendedSubCommandsKey" interface provided by Explorer. However, as I add more items, I've noticed that the number of items that I can put in a single Explorer context menu is cut off at 16. I've tried prefixing them with numbers so that they show up in order, too.

这是我制作的.reg文件,用于安装所有菜单键: http://pastebin.com/DeEXRqfK

Here's a .reg file that I made to install all of the menu keys: http://pastebin.com/DeEXRqfK

应该提供3个菜单(个性化,配置,管理),但仅提供2个菜单,第二个菜单缺少某些项目.我可以提供屏幕截图.

It's supposed to provide 3 menus (Personalization, Configuration, Administrative), but it only gives 2 and the second one is missing some items. I can provide a screenshot.

我想使用这种方法来创建上下文菜单,但是我确实知道C/C ++,并且可以在需要的地方实现某些功能.

I'd like to use this method for creating context menus, but I do know C/C++ and could probably implement something there, if needed.

更新: IContextMenu 接口可能为我提供了一种更好的制作上下文菜单的方法,但是我仍然想使用注册表,因为我已经用Python编写了代码来生成.reg文件,例如以上一个.

UPDATE: The IContextMenu interface might give me a better way to make context menus, but I still would like to use the registry as I've written code in Python to generate .reg files like the one above.

更新:我尝试在HKEY_LOCAL_MACHINE中执行此操作,但是它也不起作用...

UPDATE: I tried doing this in HKEY_LOCAL_MACHINE but it didn't work either...

更新:在尝试在Visual Studio中实现 IContextMenu 接口时,它确实很复杂.再一次,我真的很想使用注册表.

UPDATE: In tried implementing the IContextMenu interface in Visual Studio, and it's really complicated. Once again, I'd REALLY like to use the registry.

推荐答案

好吧,我从来没有找到不使用COM的完整/可行的解决方案,所以我决定编写自己的上下文菜单制作器.它使您可以使用.yml文件编写上下文菜单,并将它们嵌入Windows资源管理器中.它并不完全完美,但是它不使用COM,因此非常简单.

Well, I never found a complete/working solution to this that doesn't use COM, so I decided to write my own context menu maker. It lets you write context menus using .yml files, and lets you embed them in Windows Explorer. It's not completely perfect, but it doesn't use COM so it's quite simple.

在这里

这篇关于有没有办法超过上下文菜单的16个输入限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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