Microsoft KB Archive/123873

= PRB: Lower Half of Menu Bar Covered by Client Area =

Article ID: 123873

Article Last Modified on 12/9/2003

-

APPLIES TO

 The Resource Editor, when used with:  Microsoft Visual C++ 1.0 Professional Edition

 Microsoft Visual C++ 1.5 Professional Edition

 Microsoft Visual C++ 1.51

 Microsoft Visual C++ 1.0 Professional Edition</li></ul>

 Microsoft Visual C++ 2.0 Professional Edition</li></ul>

 Microsoft Visual C++ 4.0 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q123873

<div class="symptoms_section">

SYMPTOMS
In an application created using Visual C++, the lower half of the menu bar is covered by the client area of the main window. If there is a toolbar present, the lower half of the menu bar is covered by the toolbar.

<div class="cause_section">

CAUSE
This problem can be caused by a command with a null menu string or separator as described in the following article in the Microsoft Knowledge Base:

109539 BUG: Menu Bar Covered By Main Window Client Area

This problem can be produced in the Resource Editor (or App Studio) by improperly removing an item in the main menu bar.

<div class="resolution_section">

RESOLUTION
When removing an item in the main menu bar, you must:
 * 1) Click on that item so it is highlighted.
 * 2) Delete the item.

Following this procedure ensures that the complete menu item is deleted instead of only the caption string being deleted. This avoids the possibility of having a hidden menu item with a NULL string caption.

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

Steps to Reproduce Behavior

 * 1) Double-click the main menu item to be deleted. This will open the Property Box associated with that menu item.
 * 2) Either select the text in the caption edit box and delete it or backspace over the text in the caption edit box to eliminate the main menu item. This will leave a menu item approximately one character wide, which could be overlooked if it is not highlighted.

This procedure leaves a hidden menu item with a NULL caption in the resource file.

Additional query words: cutoff overlayed view

Keywords: kbprb KB123873

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.