BUG: Menu Lost if Caption Changed on Menu with Only WindowListLast reviewed: June 21, 1995Article ID: Q126675 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, version 3.0
SYMPTOMSWhen 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.
RESOLUTIONIn 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.
STATUSMicrosoft 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 INFORMATIONIn 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
|
Additional reference words: 3.00 buglist3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |