stdafx.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. #pragma once
  5. #ifndef VC_EXTRALEAN
  6. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  7. #endif
  8. // See http://msdn.microsoft.com/en-us/library/6sehtctf.aspx for more info
  9. // on WINVER and _WIN32_WINNT
  10. // Modify the following defines if you have to target a platform prior to the
  11. // ones specified below.
  12. // Refer to MSDN for the latest info on corresponding values for different
  13. // platforms.
  14. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4
  15. // or later.
  16. #if _MSC_VER < 1600
  17. #define WINVER \
  18. 0x0400 // Change this to the appropriate value to target Windows 98 and
  19. // Windows 2000 or later.
  20. #else
  21. #define WINVER 0x0501 // Target Windows XP and later with VS 10 and later
  22. #endif
  23. #endif
  24. #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or
  25. // later.
  26. #if _MSC_VER < 1600
  27. #define _WIN32_WINNT \
  28. 0x0400 // Change this to the appropriate value to target Windows 98 and
  29. // Windows 2000 or later.
  30. #else
  31. #define _WIN32_WINNT 0x0501 // Target Windows XP and later with VS 10 and later
  32. #endif
  33. #endif
  34. #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or
  35. // later.
  36. #if _MSC_VER < 1600
  37. #define _WIN32_WINDOWS \
  38. 0x0410 // Change this to the appropriate value to target Windows Me or later.
  39. #endif
  40. #endif
  41. #ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
  42. #if _MSC_VER < 1600
  43. #define _WIN32_IE \
  44. 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
  45. #endif
  46. #endif
  47. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be
  48. // explicit
  49. // turns off MFC's hiding of some common and often safely ignored warning
  50. // messages
  51. #define _AFX_ALL_WARNINGS
  52. #include <afxdisp.h> // MFC Automation classes
  53. #include <afxext.h> // MFC extensions
  54. #include <afxwin.h> // MFC core and standard components
  55. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  56. #ifndef _AFX_NO_AFXCMN_SUPPORT
  57. #include <afxcmn.h> // MFC support for Windows Common Controls
  58. #endif // _AFX_NO_AFXCMN_SUPPORT