1 // stdafx.h : include file for standard system include files, 2 // or project specific include files that are used frequently, 3 // but are changed infrequently 4 5 #pragma once 6 7 #ifndef _SECURE_ATL 8 #define _SECURE_ATL 1 9 #endif 10 11 #ifndef VC_EXTRALEAN 12 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 13 #endif 14 15 // Modify the following defines if you have to target a platform prior to the ones specified below. 16 // Refer to MSDN for the latest info on corresponding values for different platforms. 17 #ifndef WINVER // Allow use of features specific to Windows 8 or later. 18 #define WINVER 0x0602 // Change this to the appropriate value to target other versions of Windows. 19 #endif 20 21 #ifndef _WIN32_WINNT // Allow use of features specific to Windows 8 or later. 22 #define _WIN32_WINNT 0x0602 // Change this to the appropriate value to target other versions of Windows. 23 #endif 24 25 #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. 26 #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. 27 #endif 28 29 #ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later. 30 #define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. 31 #endif 32 33 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 34 35 // turns off MFC's hiding of some common and often safely ignored warning messages 36 #define _AFX_ALL_WARNINGS 37 38 #include <afxwin.h> // MFC core and standard components 39 #include <afxext.h> // MFC extensions 40 41 42 #include <afxdisp.h> // MFC Automation classes 43 44 #ifndef _AFX_NO_OLE_SUPPORT 45 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls 46 #endif 47 #ifndef _AFX_NO_AFXCMN_SUPPORT 48 #include <afxcmn.h> // MFC support for Windows Common Controls 49 #endif // _AFX_NO_AFXCMN_SUPPORT 50 #include <afxcontrolbars.h> 51 52 //enable gdiplus 53 #include <gdiplus.h> 54 using namespace Gdiplus; 55 #pragma comment(lib, "gdiplus.lib") 56 57 #include <RichOle.h> 58 #include <TOM.h> 59 60 //#ifdef _UNICODE 61 #if 1 62 #if defined _M_IX86 63 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 64 #elif defined _M_IA64 65 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 66 #elif defined _M_X64 67 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 68 #else 69 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 70 #endif 71 #endif 72 73 74