Show and Hide functions rearrange menu items

In an MDI application, if a sheet window is maximized, the menu's Show and Hide functions rearrange the position of the menu item associated with the open sheet. [CR 419362]