第7章 Windows编程及MFC原理.pptVIP

  • 2
  • 0
  • 约1.83万字
  • 约 69页
  • 2017-06-13 发布于湖北
  • 举报
BOOL CMySDIApp::InitInstance() { … LoadStdProfileSettings(); // Load standard INI file options (including MRU) CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CMySDIDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CMySDIView)); AddDocTemplate(pDocTemplate); CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); if (!ProcessShellCommand(cmdInfo)) return FALSE; m_pMainWnd-ShowWindow(SW_SHOW); m_pMainWnd-UpdateWindow(); return TRUE; } 通过LoadStdProfileSettings()函数从注册表中加载一些标准的文件选项,

文档评论(0)

1亿VIP精品文档

相关文档