This commit is contained in:
18
CPRobot.cpp
18
CPRobot.cpp
@@ -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();
|
||||
|
||||
// 표준 초기화
|
||||
|
||||
Reference in New Issue
Block a user