StdAfx.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5. #pragma once
  6. #ifndef VC_EXTRALEAN
  7. #define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
  8. #endif
  9. // 以下宏定义要求的最低平台。要求的最低平台
  10. // 是具有运行应用程序所需功能的 Windows、Internet Explorer 等产品的
  11. // 最早版本。通过在指定版本及更低版本的平台上启用所有可用的功能,宏可以
  12. // 正常工作。
  13. // 如果必须要针对低于以下指定版本的平台,请修改下列定义。
  14. // 有关不同平台对应值的最新信息,请参考 MSDN。
  15. #ifndef WINVER // 指定要求的最低平台是 Windows Vista。
  16. #define WINVER 0x0600 // 将此值更改为相应的值,以适用于 Windows 的其他版本。
  17. #endif
  18. #ifndef _WIN32_WINNT // 指定要求的最低平台是 Windows Vista。
  19. #define _WIN32_WINNT 0x0600 // 将此值更改为相应的值,以适用于 Windows 的其他版本。
  20. #endif
  21. #ifndef _WIN32_WINDOWS // 指定要求的最低平台是 Windows 98。
  22. #define _WIN32_WINDOWS 0x0410 // 将此值更改为适当的值,以适用于 Windows Me 或更高版本。
  23. #endif
  24. #ifndef _WIN32_IE // 指定要求的最低平台是 Internet Explorer 7.0。
  25. #define _WIN32_IE 0x0700 // 将此值更改为相应的值,以适用于 IE 的其他版本。
  26. #endif
  27. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
  28. #include <afxwin.h> // MFC 核心组件和标准组件
  29. #include <afxext.h> // MFC 扩展
  30. #ifndef _AFX_NO_OLE_SUPPORT
  31. #include <afxole.h> // MFC OLE 类
  32. #include <afxodlgs.h> // MFC OLE 对话框类
  33. #include <afxdisp.h> // MFC 自动化类
  34. #endif // _AFX_NO_OLE_SUPPORT
  35. #ifndef _AFX_NO_DB_SUPPORT
  36. #include <afxdb.h> // MFC ODBC 数据库类
  37. #endif // _AFX_NO_DB_SUPPORT
  38. #ifndef _AFX_NO_DAO_SUPPORT
  39. #include <afxdao.h> // MFC DAO 数据库类
  40. #endif // _AFX_NO_DAO_SUPPORT
  41. #ifndef _AFX_NO_OLE_SUPPORT
  42. #include <afxdtctl.h> // MFC 对 Internet Explorer 4 公共控件的支持
  43. #endif
  44. #ifndef _AFX_NO_AFXCMN_SUPPORT
  45. #include <afxcmn.h> // MFC 对 Windows 公共控件的支持
  46. #endif // _AFX_NO_AFXCMN_SUPPORT