This commit is contained in:
2013-08-26 14:55:27 +00:00
parent 0617f8c7d8
commit b4677ef764
7 changed files with 67 additions and 49 deletions

View File

@@ -48,7 +48,7 @@ LPCTSTR CVCOptModule::FindOneOf(LPCTSTR p1, LPCTSTR p2)
// CCPRobotApp
BEGIN_MESSAGE_MAP(CCPRobotApp, CWinApp)
BEGIN_MESSAGE_MAP(CCPRobotApp, CWinAppEx)
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()
@@ -133,11 +133,23 @@ BOOL CCPRobotApp::InitATL()
BOOL CCPRobotApp::InitInstance()
{
CWinApp::InitInstance();
if (!InitATL())
return FALSE;
// InitCommonControlsEx() 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.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 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;
InitCommonControlsEx(&InitCtrls);
CWinAppEx::InitInstance();
AfxEnableControlContainer();
// 표준 초기화