Example #1
0
CDocTemplateEx::~CDocTemplateEx()
{
	CWinApp* pApp = AfxGetApp();
	if (pApp->m_pCmdInfo == NULL ||
		pApp->m_pCmdInfo->m_nShellCommand != CCommandLineInfo::AppUnregister)
	{
		if (!afxContextIsDLL)
			SaveStdProfileSettings();
	}

	// free recent file list
	if (m_pRecentFileList != NULL)
		delete m_pRecentFileList;
}
Example #2
0
int CWinApp::ExitInstance()
/*************************/
{
    SaveStdProfileSettings();
    return( CWinThread::ExitInstance() );
}
Example #3
0
int CTimeMApp::ExitInstance()
{
	int nRet = CWinAppEx::ExitInstance();
	SaveStdProfileSettings();
	return nRet;
}