Microsoft KB Archive/74789

{|
 * width="100%"|

PRB: MDI Program Menu Items Changed Unexpectedly

 * }

Q74789

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)
 * Microsoft Windows Software Development Kit (SDK) 3.1

-

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 : kbOSWin2000 kbSDKWin32 kbGrpDSUser _IK

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWinSDKSearch kbWinSDK310