StdAfx.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. #if !defined(AFX_STDAFX_H__F330509F_7C84_4EBA_BB51_E484B3390820__INCLUDED_)
  6. #define AFX_STDAFX_H__F330509F_7C84_4EBA_BB51_E484B3390820__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  11. #include <afxwin.h> // MFC core and standard components
  12. #include <afxext.h> // MFC extensions
  13. #include <afxdisp.h> // MFC Automation classes
  14. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  15. #ifndef _AFX_NO_AFXCMN_SUPPORT
  16. #include <afxcmn.h> // MFC support for Windows Common Controls
  17. #endif // _AFX_NO_AFXCMN_SUPPORT
  18. #ifndef _AFX_NO_DB_SUPPORT
  19. #include <afxdb.h> // MFC ODBC database classes
  20. #endif // _AFX_NO_DB_SUPPORT
  21. #include "NeroAPIGlue.h"
  22. #include "ThemidaSDK.h"
  23. #pragma warning(disable:4786)
  24. #define SQLSERVER_VERSION //MS SQL版本
  25. #define SETPOINT 1
  26. #define ADD_LOGIN //加指纹功能
  27. //#define TEST_LOCAL 1 //用于本机测试
  28. #define NEW_SKIN //新界面
  29. #define MSG_LENGTH 64
  30. #define REPL_TITLE //可替换标题
  31. //#define BASIC_VERSION //简易版,只有流程
  32. //#define BASIC_ADDMEMBER //简易版加会员功能
  33. //#define BASIC_ADDPHONE //简易版加客户管理和来电精灵
  34. //#define BASIC_ADDDRESS //简易版加礼服管理
  35. //#define NOCALCOST //不要成本核算
  36. //....................................................
  37. //#define ZHIAI_VERSION //挚爱
  38. //#define MNLS_VERSION //mnls
  39. //#define SZBLCT_VERSION //深圳巴黎春天
  40. //#define SZWNS_VERSION //深圳维纳斯
  41. // #define QCH_VERSION //七彩虹
  42. // #define LKAY_VERSION //靓康爱婴
  43. //#define DDF_VERSION //多多福
  44. //#define SUNRAIN_VERSION //新疆太阳雨
  45. // #define LYFZ_VERSION //内部版本
  46. //..............................................
  47. //#define CHILD_VERSION //儿童版
  48. #define ENTERPRISE_VERSION //企业版
  49. //..............................................
  50. // 客户端不分座席版与全能版, 但区分企业版与全能版;
  51. // 婚纱版:
  52. // 1.关闭全部宏,就是婚纱全能版;
  53. // 2.只开启ENTERPRISE_VERSION,就是婚纱企业版;
  54. // 儿童版:
  55. // 1.只开启CHILD_VERSION,就是儿童全能版;
  56. // 2.只开启CHILD_VERSION+ENTERPRISE_VERSION,就是儿童企业版
  57. // 3.开启CHILD_VERSION+ENTERPRISE_VERSION+DDF_VERSION,多多福儿童集团版
  58. // 另:每次升级版本时,只能从升级包中升级,否则会产生客户端连接服务端时失败的现象;
  59. #ifndef NEW_SKIN
  60. #define MyFormView CFormView
  61. #endif
  62. #include <afxtempl.h> // MFC 模板类
  63. //#include "Shlwapi.h"
  64. #include ".\list\SortHeaderCtrl2.h"
  65. #include ".\list\SortListCtrl3.h"
  66. #include ".\list\SortListCtrl2.h"
  67. #include "MyFormView.h"
  68. #include "NumEdit.h"
  69. #include "DateEdit.h"
  70. #include "SQLStatementImpl.h"
  71. #define BMP_NORMAL 0x00000001L
  72. #define BMP_FOCUS 0x00000002L
  73. #define BMP_FOCUSED 0x00000004L
  74. #define BMP_DISABLE 0x00000008L
  75. #define BMP_FLASH 0x00000010L
  76. #include "ImageStone.h"
  77. #include "FCMemDC.h"
  78. // color convert ------------------------------------------------------------
  79. inline RGBQUAD RGBtoRGBQUAD (COLORREF color)
  80. {
  81. RGBQUAD rgb = {GetBValue(color), GetGValue(color), GetRValue(color), (BYTE)(color>>24)} ;
  82. return rgb ;
  83. }
  84. inline COLORREF RGBQUADtoRGB (RGBQUAD rgb)
  85. {
  86. return RGB (rgb.rgbRed, rgb.rgbGreen, rgb.rgbBlue) ;
  87. }
  88. //GDI+
  89. #ifndef ULONG_PTR
  90. #define ULONG_PTR unsigned long*
  91. #endif
  92. #include "Global/Global.h"
  93. #ifndef SQLITE_CORE
  94. #define SQLITE_CORE
  95. #endif
  96. #include ".\SQLite\sqlite3.h"
  97. #include ".\SQLite\sqlite3ext.h"
  98. #pragma comment(lib, ".\\lib\\SQLite3.lib")
  99. #define USE_NETSHAREINFO_FUN 0 // 是否使用多级共享目录功能;
  100. #endif // !defined(AFX_STDAFX_H__F330509F_7C84_4EBA_BB51_E484B3390820__INCLUDED_)