stdafx.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 ones specified below.
  11. // Refer to MSDN for the latest info on corresponding values for different platforms.
  12. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
  13. #if _MSC_VER < 1600
  14. #define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
  15. #else
  16. #define WINVER 0x0501 // Target Windows XP and later with VS 10 and later
  17. #endif
  18. #endif
  19. #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
  20. #if _MSC_VER < 1600
  21. #define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
  22. #else
  23. #define _WIN32_WINNT 0x0501 // Target Windows XP and later with VS 10 and later
  24. #endif
  25. #endif
  26. #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
  27. #if _MSC_VER < 1600
  28. #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
  29. #endif
  30. #endif
  31. #ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
  32. #if _MSC_VER < 1600
  33. #define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
  34. #endif
  35. #endif
  36. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
  37. // turns off MFC's hiding of some common and often safely ignored warning messages
  38. #define _AFX_ALL_WARNINGS
  39. #include <afxwin.h> // MFC core and standard components
  40. #include <afxext.h> // MFC extensions
  41. #include <afxdisp.h> // MFC Automation classes
  42. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  43. #ifndef _AFX_NO_AFXCMN_SUPPORT
  44. #include <afxcmn.h> // MFC support for Windows Common Controls
  45. #endif // _AFX_NO_AFXCMN_SUPPORT