コード例 #1
0
ファイル: BCGPGridExample.cpp プロジェクト: zxlooong/bcgexp
int CBCGPGridExampleApp::ExitInstance() 
{
	m_Options.Save ();
	BCGCBProCleanUp();

	return CWinApp::ExitInstance();
}
コード例 #2
0
ファイル: Application.cpp プロジェクト: iclosure/jframework
int C[!output APP_CLASS_NAME]App::ExitInstance()
{
	//
	BCGCBProCleanUp();

	return CBCGPWinApp::ExitInstance();
}
コード例 #3
0
ファイル: BCGPGanttDemo.cpp プロジェクト: zxlooong/bcgexp
int CBCGPGanttDemoApp::ExitInstance()
{
#ifndef _BCGPGANTT_STANDALONE
    BCGCBProCleanUp();
#endif

    return CWinApp::ExitInstance();
}
コード例 #4
0
ファイル: BCGPIE7Demo.cpp プロジェクト: zxlooong/bcgexp
int CBCGPIE7DemoApp::ExitInstance() 
{
	BCGCBProCleanUp();

	WriteProfileInt (_T("Options"), _T("LargeIcons"), (int)m_bLargeIcons);

	return CWinApp::ExitInstance();
}
コード例 #5
0
ファイル: BCGPOrganizer.cpp プロジェクト: zxlooong/bcgexp
int CBCGPOrganizerApp::ExitInstance() 
{
	WriteInt (_T("ShowFloaty"), m_bShowFloaty);
	WriteInt (_T("ApplicationLook"), m_nAppLook);
	WriteInt (_T("ShowToolTips"), m_bShowToolTips);
	WriteInt (_T("ShowKeyTips"), m_bShowKeyTips);
	WriteInt (_T("ShowToolTipDescription"), m_bShowToolTipDescr);

	m_OptionsPlanner.Save ();
	m_OptionsGantt.Save ();

	BCGCBProCleanUp();

	return CWinApp::ExitInstance();
}
コード例 #6
0
int CPeraProcessDesignerApp::ExitInstance() 
{
	// Save settings:
	CBCGPXMLSettings::WriteXMLToFile (FALSE, GetExecDir() +_T("\\user.xml"));

	//清理ICE接口相关对象
	ClearPeraIce();

	//////////////////////////////////////////////////////////////////////////
	//在线编辑用到的共享内存清理
	if (theApp.m_pSharedMemoryOnlineEdit)
	{
		delete theApp.m_pSharedMemoryOnlineEdit;
		theApp.m_pSharedMemoryOnlineEdit = NULL;
	}
	//////////////////////////////////////////////////////////////////////////

	ClearResLibImageSet();

	BCGCBProCleanUp();
	//////////////////////////////////////////////////////////////////////////
	//延长票据有效期
	StopKeepTicketThread();
	//关闭时注销当前票据
	if (!m_LoginData.m_strTicket.IsEmpty())
	{
		//20140403与青田冯维确认,当前版本下建模和个人工作平台直接关闭时不注销用户,只有用户点击注销时才注销,lc
		//Logout(m_LoginData.m_strTicket);
		m_LoginData.Clear();
	}
	DeleteShareMemoryLoginInfo(); // 退出程序时删除共享内存
	//if(lpFnDLLfunc != NULL)
	//{
	//	::FreeLibrary(hModule);
	//}
	if (m_hMetux)
	{
		CloseHandle(m_hMetux);
		m_hMetux = NULL;
	}
	return CWinApp::ExitInstance();
}
コード例 #7
0
BOOL CPuzzleGameApp::InitInstance()
{
	// InitCommonControls() is required on Windows XP if an application
	// manifest specifies use of ComCtl32.dll version 6 or later to enable
	// visual styles.  Otherwise, any window creation will fail.
	InitCommonControls();

	CWinApp::InitInstance();

	AfxEnableControlContainer();


	globalData.SetDPIAware ();

	CBCGPVisualManager::SetDefaultManager (RUNTIME_CLASS (CBCGPVisualManager2007));
	GdiplusStartupInput gdiplusStartupInput;
	GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);

	CPuzzleGameDlg dlg;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}

	BCGCBProCleanUp ();

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}
コード例 #8
0
ファイル: UAVSoft.cpp プロジェクト: lozpeng/applesales
int CUAVSoftApp::ExitInstance() 
{
	BCGCBProCleanUp();

	return CWinApp::ExitInstance();
}
コード例 #9
0
int CTest2App::ExitInstance() 
{
	BCGCBProCleanUp();

	return CWinApp::ExitInstance();
}
コード例 #10
0
int CCugWorkSpaceApp::ExitInstance() 
{
	BCGCBProCleanUp();
	GdiplusShutdown(m_gdiplusToken);
	return CWinApp::ExitInstance();
}
コード例 #11
0
ファイル: BCGPMSMoneyDemo.cpp プロジェクト: zxlooong/bcgexp
int CBCGPMSMoneyDemoApp::ExitInstance() 
{
	BCGCBProCleanUp();

	return CWinApp::ExitInstance();
}
コード例 #12
0
ファイル: VisualVNC.cpp プロジェクト: heiden-deng/VisualVNC
int CVisualVNCApp::ExitInstance() 
{
	BCGCBProCleanUp();
	WSACleanup();
	return CWinApp::ExitInstance();
}
コード例 #13
0
BOOL CFileManagerApp::InitInstance()
{
	// InitCommonControls() is required on Windows XP if an application
	// manifest specifies use of ComCtl32.dll version 6 or later to enable
	// visual styles.  Otherwise, any window creation will fail.
	InitCommonControls();

	CWinApp::InitInstance();
#if CONSOLE_WND
	InitConsoleWindow();
#endif

	AfxEnableControlContainer();
	LogTools::InitZToolsLog();
	CCrashHandler ch;
	ch.SetProcessExceptionHandlers();
	ch.SetThreadExceptionHandlers();

	globalData.SetDPIAware ();
	ProcessCmd();
	HANDLE hMetux = CreateMutex(NULL,TRUE,"FileManager_Sqlite3");
	if (hMetux)
	{
		if(ERROR_ALREADY_EXISTS==GetLastError())
		{
			CloseHandle(hMetux);
			CWnd * pDeskTopWnd = CWnd::GetDesktopWindow();
			CWnd *pFind = pDeskTopWnd->GetWindow(GW_CHILD);
			while(pFind)
			{
				if (::GetProp(pFind->m_hWnd,m_pszExeName))
				{
					if (::IsIconic(pFind->m_hWnd))
						pFind->ShowWindow(SW_RESTORE); // 如果主窗口已经最小话,则恢复其大小
					pFind->ShowWindow(SW_SHOW);
					pFind->SetForegroundWindow();
					::SetForegroundWindow(::GetLastActivePopup(pFind->m_hWnd));
					return FALSE; // 前一个运行实例已经存在,退出本实例
				}
				pFind = pFind->GetWindow(GW_HWNDNEXT);
			}
		}
	}

	CFileManagerDlg dlg;
	dlg.m_bRunAtBack = m_bRunAtBack;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}

	BCGCBProCleanUp ();
	CloseHandle(hMetux);
	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}