Search code examples
windowsregistrycontextmenu

Is there a maximum right click context menu items limit?


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.


Solution

  • 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.