framework.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #ifndef VC_EXTRALEAN
  3. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  4. #endif
  5. #include "targetver.h"
  6. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
  7. // turns off MFC's hiding of some common and often safely ignored warning messages
  8. #define _AFX_ALL_WARNINGS
  9. #include <afxwin.h> // MFC core and standard components
  10. #include <afxext.h> // MFC extensions
  11. #include <afxdisp.h> // MFC Automation classes
  12. #ifndef _AFX_NO_OLE_SUPPORT
  13. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  14. #endif
  15. #ifndef _AFX_NO_AFXCMN_SUPPORT
  16. #include <afxcmn.h> // MFC support for Windows Common Controls
  17. #endif // _AFX_NO_AFXCMN_SUPPORT
  18. #include <afxcontrolbars.h> // MFC support for ribbons and control bars
  19. #ifdef _UNICODE
  20. #if defined _M_IX86
  21. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  22. #elif defined _M_X64
  23. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  24. #else
  25. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  26. #endif
  27. #endif