Index: src/ch/ch.cpp =================================================================== diff -u -N -r6b00e83b41342f9045fbf2dd1e8654b43656ca4c -r7a096cad617f85582370a1c788c45442d39efc8c --- src/ch/ch.cpp (.../ch.cpp) (revision 6b00e83b41342f9045fbf2dd1e8654b43656ca4c) +++ src/ch/ch.cpp (.../ch.cpp) (revision 7a096cad617f85582370a1c788c45442d39efc8c) @@ -225,6 +225,17 @@ BOOL CCopyHandlerApp::InitInstance() { + // 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; + InitCommonControlsEx(&InitCtrls); + + // set the exception handler to catch the crash dumps SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter); CWinApp::InitInstance();