PRB: MDI Program Menu Items Changed Unexpectedly

ID: Q74789


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows Software Development Kit (SDK) 3.1
  • Microsoft Windows 2000


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 kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS kbWndw
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 28, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.