BUG: Menu Bar Covered by Main Window Client Area

ID: Q109539


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), on platform(s):
    • Microsoft Windows NT, versions 3.5, 3.51
  • Microsoft Windows Software Development Kit (SDK) 3.1


SYMPTOMS

In an application, the lower half of the menu bar is covered by the client area of the main window.


CAUSE

This problem can be caused by a command with a null menu string or separator at the end of the menu bar. For example, if you use the following menus in a window, they will display the problem:


   PROBLEMMENU MENU DISCARDABLE
   BEGIN
      POPUP "&Popup 1"
         BEGIN
            MENUITEM "&Menu Item 1", 1
         END
      MENUITEM "", 2
   END 
-or-

   PROBLEMMENU MENU DISCARDABLE
   BEGIN
      POPUP "&Popup 1"
         BEGIN
            MENUITEM "&Menu Item 1", 1
         END
      MENUITEM "", 2
   END 


RESOLUTION

To work around this problem, remove the command with a null menu string or separator at the end of the menu bar.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words: utoff overlayed view toolbar win16sdk

Keywords : kbMenu kbNTOS310 kbNTOS350 kbNTOS351bug kbGrpUser kbWinOS310bug
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: December 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.