StdAfx.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. #ifndef NEW_SKIN
  47. #define MyFormView CFormView
  48. #endif
  49. #include <afxtempl.h> // MFC 模板类
  50. #include <tlhelp32.h>
  51. #include ".\list\SortHeaderCtrl2.h"
  52. #include ".\list\SortListCtrl3.h"
  53. #include ".\list\SortListCtrl2.h"
  54. #include "MyFormView.h"
  55. #include "NumEdit.h"
  56. #include "DateEdit.h"
  57. #include "SQLStatementImpl.h"
  58. #define BMP_NORMAL 0x00000001L
  59. #define BMP_FOCUS 0x00000002L
  60. #define BMP_FOCUSED 0x00000004L
  61. #define BMP_DISABLE 0x00000008L
  62. #define BMP_FLASH 0x00000010L
  63. #include "ImageStone.h"
  64. #include "FCMemDC.h"
  65. // color convert ------------------------------------------------------------
  66. inline RGBQUAD RGBtoRGBQUAD (COLORREF color)
  67. {
  68. RGBQUAD rgb = {GetBValue(color), GetGValue(color), GetRValue(color), (BYTE)(color>>24)} ;
  69. return rgb ;
  70. }
  71. inline COLORREF RGBQUADtoRGB (RGBQUAD rgb)
  72. {
  73. return RGB (rgb.rgbRed, rgb.rgbGreen, rgb.rgbBlue) ;
  74. }
  75. //GDI+
  76. #ifndef ULONG_PTR
  77. #define ULONG_PTR unsigned long*
  78. #endif
  79. #include "Global/Global.h"
  80. #ifndef SQLITE_CORE
  81. #define SQLITE_CORE
  82. #endif
  83. #include ".\SQLite\sqlite3.h"
  84. #include ".\SQLite\sqlite3ext.h"
  85. #pragma comment(lib, ".\\lib\\SQLite3.lib")
  86. #define USE_NETSHAREINFO_FUN 0 // 是否使用多级共享目录功能;
  87. #include "NetShareInfo.h"
  88. #define USE_ADO_OPT_DB 0 //使用Ado操作数据库
  89. #include "Global/ChinesePinYin.h"
  90. #include "MD5.h"
  91. #include <Winnetwk.h>
  92. #pragma comment(lib, "Mpr.lib.")
  93. #include "..\..\..\common\cJson\cJSON.h"
  94. #include "..\..\..\common\des\des.h"
  95. #include "..\..\..\common\Base64\Base64.h"
  96. #ifdef VC80
  97. #pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'\"")
  98. #endif
  99. #ifdef VC90
  100. #pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'\"")
  101. #endif
  102. #endif // !defined(AFX_STDAFX_H__F330509F_7C84_4EBA_BB51_E484B3390820__INCLUDED_)