| 字词 | CDocument::GetDocTemplate |
| 释义 | CDocument::GetDocTemplate CDocTemplate* GetDocTemplate() const; 返回值: 返回该文档类型模板的指针。如果文档不由该文档模板管理,则返回NULL。 说明: 调用该函数为文档类型的文档模板获取指针。 示例: // This example accesses the doc template object to construct // a default document name such as SHEET.XLS,where "sheet" // is the base document name and *.xls* is the file extension // for the document type. CString strDefaultDocName, strBaseName, strExt; CDocTemplate* pDocTemplate = GetDocTemplate(); if (!pDocTemplate->GetDocString(strBaseName,CDocTemplate::docName) || !pDocTemplate->GetDocString(strExt, CDocTemplate::filterExt) ) { AfxThrowUserException(); // These doc template strings will // be available if you created the application using AppWizard // and specified the file extension as an option for // the document class produced by AppWizard. } strDefaultDocName = strBaseName + strExt; 请参阅:CDocTemplate |
| 随便看 |
|
计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。