正在阅读:明明白白看MFC之程序框架(二)明明白白看MFC之程序框架(二)

2004-04-19 15:32 出处:CSDN 作者:eliner 责任编辑:sdq

InitFailure:

……………………

 

     AfxWinTerm();

     return nReturnCode;

}

 

BOOL CWinApp::InitApplication()

{

     if (CDocManager::pStaticDocManager != NULL)

     {

            if (m_pDocManager == NULL)

                   m_pDocManager = CDocManager::pStaticDocManager;

            CDocManager::pStaticDocManager = NULL;

     }

 

     if (m_pDocManager != NULL)

            m_pDocManager->AddDocTemplate(NULL);

     else

            CDocManager::bStaticInit = FALSE;

 

     return TRUE;

}

BOOL CHelloWorldApp::InitInstance()

{

     AfxEnableControlContainer();

 

     ………………………………

 

     // Change the registry key under which our settings are stored.

     // TODO: You should modify this string to be something appropriate

     // such as the name of your company or organization.

     SetRegistryKey(_T("Local AppWizard-Generated Applications"));

 

键盘也能翻页,试试“← →”键

相关文章

关注我们

最新资讯离线随时看 聊天吐槽赢奖品