Article ID: 126675 - Last Review: October 30, 2003 - Revision: 2.0 BUG: Menu Lost if Caption Changed on Menu with Only WindowListThis article was previously published under Q126675 On This PageSYMPTOMS
When a top-level menu has its WindowList property set to True and the top-
level menu does not contain any sub-menus, after changing the menu's
caption the top-level menu will no longer display the list of MDI child
windows and you will not receive any click events.
RESOLUTION
In order to work around the problem, make sure the top-level menu item
that has the WindowList property set to True has at least 1 sub-menu
item.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
MORE INFORMATION
In the example below, a menu on the MDI form contains nothing but a
WindowList. A command button is placed on the MDI child form with code
behind it to change the caption of the menu containing the WindowList. As
long as you do not click on the command button, the Window menu will
display a list the MDI child windows. Once you click on the command button,
the Window menu caption is changed to "Test" and it no longer keeps track
of the MDI child windows and it no longer receives click events. NOTE: Issuing the command "Print MDIForm1.mnuwindow.Windowlist" (without the quotes) from the immediate window will return -1 (True). However, the Window list is not displayed. Steps To Recreate The Problem
| Article Translations
|

Back to the top
