StdAfx.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 LYFZ_VERSION //内部版本
  32. // 客户端不分座席版与全能版, 但区分企业版与全能版;
  33. // 婚纱版:
  34. // 1.关闭全部宏,就是婚纱全能版;
  35. // 2.只开启ENTERPRISE_VERSION,就是婚纱企业版;
  36. // 儿童版:
  37. // 1.只开启CHILD_VERSION,就是儿童全能版;
  38. // 2.只开启CHILD_VERSION+ENTERPRISE_VERSION,就是儿童企业版
  39. // 另:每次升级版本时,只能从升级包中升级,否则会产生客户端连接服务端时失败的现象;
  40. #ifndef NEW_SKIN
  41. #define MyFormView CFormView
  42. #endif
  43. #include <afxtempl.h> // MFC 模板类
  44. #include "Shlwapi.h"
  45. #include ".\list\SortHeaderCtrl2.h"
  46. #include ".\list\SortListCtrl3.h"
  47. #include ".\list\SortListCtrl2.h"
  48. #include "MyFormView.h"
  49. #include "NumEdit.h"
  50. #include "DateEdit.h"
  51. #define BMP_NORMAL 0x00000001L
  52. #define BMP_FOCUS 0x00000002L
  53. #define BMP_FOCUSED 0x00000004L
  54. #define BMP_DISABLE 0x00000008L
  55. #define BMP_FLASH 0x00000010L
  56. #include "ImageStone.h"
  57. #include "FCMemDC.h"
  58. // color convert ------------------------------------------------------------
  59. inline RGBQUAD RGBtoRGBQUAD (COLORREF color)
  60. {
  61. RGBQUAD rgb = {GetBValue(color), GetGValue(color), GetRValue(color), (BYTE)(color>>24)} ;
  62. return rgb ;
  63. }
  64. inline COLORREF RGBQUADtoRGB (RGBQUAD rgb)
  65. {
  66. return RGB (rgb.rgbRed, rgb.rgbGreen, rgb.rgbBlue) ;
  67. }
  68. //GDI+
  69. #ifndef ULONG_PTR
  70. #define ULONG_PTR unsigned long*
  71. #endif
  72. #include "MD5.h"
  73. #include "Global/Global.h"
  74. #include "SQLStatementImpl.h"
  75. #include ".\\includes\\gdiplus.h" ////请修改为你的头文件路径
  76. using namespace Gdiplus;
  77. #pragma comment(lib, ".\\lib\\gdiplus.lib") ////请修改为你的.lib文件路径
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  80. #ifdef VC80
  81. #pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'\"")
  82. #endif
  83. #ifdef VC90
  84. #pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'\"")
  85. #endif
  86. //#pragma comment(lib, "legacy_stdio_definitions.lib")
  87. #include "Dal.h"
  88. #endif // !defined(AFX_STDAFX_H__F330509F_7C84_4EBA_BB51_E484B3390820__INCLUDED_)