希望我还没有迷路:)
cmultidoctemplate::opendocumentfile 又是很多很多代码,让我们选择一些。
|
cdocument* cmultidoctemplate::opendocumentfile(lpctstr lpszpathname, bool bmakevisible) { // 以下代码删减了验证、断言部分 cdocument* pdocument = createnewdocument(); // 创建文档对象 cframewnd* pframe = createnewframe(pdocument, null); // 创建框架窗口 if (lpszpathname == null) { pdocument->onnewdocument(); // 初始化文档 } else // 打开已有文档 initialupdateframe(pframe, pdocument, bmakevisible); return pdocument; } |