PRB: MDI Program Menu Items Changed Unexpectedly

ID Number: Q74789

3.00 3.10

WINDOWS

Summary:

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 reference words: 3.00 3.10