When you add command lists to the menu structure, the menu actually displays a visual representation of the command list. It automatically adjusts for hidden or disabled commands in the menu. For example, if a command is hidden by the hide command statement, it won’t appear in any menus based on command lists that contain the command.
The runtime engine automatically adjusts for any visual issues that can result from hiding commands. For example, assume a command is surrounded by two separators. If the command is hidden, the two seperators would be next to each other in the menu. However, the runtime will detect this condition and display only one separator. This only affects the display. The content of the command lists remains unchanged.