PRB: MDI Program Menu Items Changed Unexpectedly

ID: Q74789


The information in this article applies to:


SYMPTOMS

In an application for the Microsoft Windows graphical environment developed using the Windows multiple document interface (MDI), when the Window menu changes to indicate the addition of MDI child windows, another menu of the application is also changed.

For example, if the menu resembles the following before any windows are opened


   FILE            WINDOW
      Load            Cascade
      Save            Tile
      Save As...      Arrange Icons
      Exit 

the menu might resemble the following after the first window is opened:

   FILE            WINDOW
      Load            Cascade
      1: MENU.TXT     Tile
      Save As...      Arrange Icons
      Exit            -------------
                      1: MENU.TXT 


CAUSE

One or more menu items have menu-item identifiers that are greater than or equal to the value of the idFirstChild member of the CLIENTCREATESTRUCT data structure used to create the MDI client window.


RESOLUTION

Change the value of the idFirstChild member to be larger than any menu item identifiers.

Additional query words: WIN16SDK


Keywords          : kbMDI kbNTOS kbGrpUser kbWinOS kbWndw 
Version           : 
Platform          : 
Issue type        : kbprb 

Last Reviewed: March 7, 1999