How to add multiple window types to a non-document view MDI application (201045)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q201045 Note Microsoft Visual C++ .NET (2002) and Microsoft Visual C++ .NET
(2003) support both the managed code model that is provided by the .NET
Framework and the unmanaged native Windows code model. The information in this
article applies to unmanaged Visual C++ code only. SUMMARY The following steps create a simple application with two
types of windows, one for drawing, the other for text, starting from the
wizard-generated non document view MDI application. At the end, the application
has two CMDIChildFrame-derived classes called CDrawFrame and CTextFrame, two
CWnd-derived classes called CDrawWnd and CTextWnd, and resources (accelerators,
menus, icons, and strings) called IDR_DRAWTYPE and IDR_TEXTTYPE.
The
application has two types of windows, each with its own menu, accelerator
table, title and icon. More complex features like persistency are not
implemented in this code.
Modification Type: | Major | Last Reviewed: | 4/22/2005 |
---|
Keywords: | kbArchitecture kbDocView kbhowto KbUIDesign KB201045 kbAudDeveloper |
---|
|