温故而知新,学习MFC框架如何创建的过程[20]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 liukaven 的 blog

希望我还没有迷路:)

 

 

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;

}

 

本文关键:温故而知新,学习MFC框架如何创建的过程
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top