This commit is contained in:
16
CPRobot.cpp
16
CPRobot.cpp
@@ -28,6 +28,7 @@ LONG CVCOptModule::Lock()
|
||||
AfxOleLockApp();
|
||||
return 1;
|
||||
}
|
||||
|
||||
LPCTSTR CVCOptModule::FindOneOf(LPCTSTR p1, LPCTSTR p2)
|
||||
{
|
||||
while (*p1 != NULL)
|
||||
@@ -144,7 +145,7 @@ BOOL CCPRobotApp::InitInstance()
|
||||
// Set this to include all the common control classes you want to use
|
||||
// in your application.
|
||||
InitCtrls.dwICC = ICC_WIN95_CLASSES;
|
||||
InitCtrls.dwICC = ICC_COOL_CLASSES;
|
||||
InitCtrls.dwICC = ICC_STANDARD_CLASSES;
|
||||
InitCommonControlsEx(&InitCtrls);
|
||||
|
||||
CWinAppEx::InitInstance();
|
||||
@@ -179,3 +180,16 @@ BOOL CCPRobotApp::InitInstance()
|
||||
// 반환합니다.
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int CCPRobotApp::ExitInstance()
|
||||
{
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
if (m_bATLInited)
|
||||
{
|
||||
_Module.RevokeClassObjects();
|
||||
_Module.Term();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
return CWinAppEx::ExitInstance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user