StdAfx.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. #define BMP_NORMAL 0x00000001L
  71. #define BMP_FOCUS 0x00000002L
  72. #define BMP_FOCUSED 0x00000004L
  73. #define BMP_DISABLE 0x00000008L
  74. #define BMP_FLASH 0x00000010L
  75. #include "ImageStone.h"
  76. #include "FCMemDC.h"
  77. // color convert ------------------------------------------------------------
  78. inline RGBQUAD RGBtoRGBQUAD (COLORREF color)
  79. {
  80. RGBQUAD rgb = {GetBValue(color), GetGValue(color), GetRValue(color), (BYTE)(color>>24)} ;
  81. return rgb ;
  82. }
  83. inline COLORREF RGBQUADtoRGB (RGBQUAD rgb)
  84. {
  85. return RGB (rgb.rgbRed, rgb.rgbGreen, rgb.rgbBlue) ;
  86. }
  87. //GDI+
  88. #ifndef ULONG_PTR
  89. #define ULONG_PTR unsigned long*
  90. #endif
  91. #include "Global.h"
  92. //FILE* g_pf; // add by Jeff 2014.05.24
  93. //{{AFX_INSERT_LOCATION}}
  94. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  95. #endif // !defined(AFX_STDAFX_H__F330509F_7C84_4EBA_BB51_E484B3390820__INCLUDED_)