How to create a CMultiDocTemplate based window in Visual C++ (113257)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- 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 Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- 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
This article was previously published under Q113257 SUMMARY It is sometimes desirable to create a CMultiDocTemplate
based window (in other words, a CFrame/CDocument/CView combination) without
using the mechanism provided by CWinApp::OnFileNew.
For example, if
the program has multiple document templates, CWinApp::OnFileNew will prompt the
user with a dialog box asking which type of document to open. The programmer
may already know which type of CMultiDocTemplate to use, and therefore may not
want to prompt the user because it would be inappropriate in the given context
of the application.
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbinfo kbDocView kbhowto KB113257 kbAudDeveloper |
---|
|