Call this member function to construct a CSingleDocTemplate object. You dynamically allocate a CSingleDocTemplate object, and pass it to CWinApp::AddDocTemplate from within the CWinApp::InitInstance member function of your application class.
CSingleDocTemplate( UINT nIDResource, CRuntimeClass* pDocClass, CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass );
Header file: | Afxwin.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CSingleDocTemplate Overview, CSingleDocTemplate Class Members, Application Architecture Classes, CDocTemplate::GetDocString, CWinApp::AddDocTemplate, CWinApp::InitInstance, CRuntimeClass