Is there a maximum right click context menu items limit

天大地大妈咪最大 提交于 2019-12-13 04:35:23

问题


I'm making a custom right click submenu (in Windows registry) using SubCommands, but after adding more options to it, some last options disappeared. Is there a maximum amount of items that are allowed? If so, is there a way to workaround? I'm on Windows 7. When I go to the registry, all the SubCommands are saved in the string value.


回答1:


Yes! there's a limit of 16 entries for each context menu entry, including submenus and any entry inside of them.. If I'm not mistaken this limit exists since the dawn of Windows, at least as far back as Windows 95. At the time, leaving that feature without any limit could negatively impact system performance. This limit however, doesn't seem to apply to COM shell extensions, so there might be a solution around. I think it's best to organize and be more selective on what's included in the context menu.



来源:https://stackoverflow.com/questions/48625223/is-there-a-maximum-right-click-context-menu-items-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!