How to create MFC applications that do not have a menu bar in Visual C++ (131368)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
- Microsoft Visual C++ 2005 Express Edition
This article was previously published under Q131368 Note Microsoft Visual C++ .NET (2002) supports both the managed code
model that is provided by the Microsoft .NET Framework and the unmanaged native
Microsoft Windows code model. The information in this article applies only to
unmanaged Visual C++ code.
Note Microsoft Visual C++ 2005 supports both the managed code
model that is provided by the .NET Framework and the unmanaged native
Windows code model. SUMMARY For most Windows-based applications, a menu bar is a part
of the user interface. The menu bar provides a functionality summary for the
person using the program. However, it is not required that every Windows-based
application must contain a menu bar. This article describes how to create an
MFC application that does not have a menu bar.
For Windows-based
applications generated by AppWizard, the IDR_MAINFRAME menu resource is the
standard menu resource for both SDI and MDI applications. It is the only menu
resource for an SDI application. MDI applications contain additional menus for
each type of MDI child window they support. Those menu resources are usually
named IDR_xxxTYPE, where xxx is related to the name of the corresponding
document type. Thus, creating an application with no menus is not as easy for
an MDI application as for an SDI application. You basically have to modify all
functions related to loading and switching menus.
Modification Type: | Major | Last Reviewed: | 12/9/2005 |
---|
Keywords: | kbDocView kbhowto kbMenu KbUIDesign KB131368 kbAudDeveloper |
---|
|