// 修改了原始的文档
setdefaulttitle(pdocument);
if (!pdocument->onnewdocument())
{
trace0("error: onnewdocument failed after trying to open a document - trying to continue.\n");
}
}
return null; // open failed
}
pdocument->setpathname(lpszpathname);
}
cwinthread* pthread = afxgetthread();
if (bcreated && pthread->m_pmainwnd == null)
{
pthread->m_pmainwnd = pframe;
}
initialupdateframe(pframe, pdocument, bmakevisible);