StdAfx.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. #if !defined(AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_)
  5. #define AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  10. #include <afxwin.h> // MFC core and standard components
  11. #include <afxext.h> // MFC extensions
  12. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  13. #ifndef _AFX_NO_AFXCMN_SUPPORT
  14. #include <afxcmn.h> // MFC support for Windows Common Controls
  15. #endif // _AFX_NO_AFXCMN_SUPPORT
  16. #include <afxdb.h> // MFC ODBC database classes
  17. #include <afxmt.h>
  18. #include <afxsock.h> // MFC socket extensions
  19. #include "Shlwapi.h"
  20. #include <afxtempl.h>
  21. #include <shlobj.h>
  22. #include "shfolder.h"
  23. #include <afxtempl.h> // MFC 模板类
  24. // #if LOG4C_ENABLE
  25. // #include "log4c.h"
  26. // #pragma comment(lib,"log4c.lib")
  27. // #endif
  28. //#define BASIC_VERSION //简易版,只有流程
  29. #define MSG_LENGTH 64
  30. #define TIMEDOG_VERSION//时钟狗
  31. #define SQLSERVER_VERSION //MS SQL版本
  32. //...........................
  33. //#define LKAY_VERSION //靓康爱婴
  34. //#define LYFZ_VERSION //内部版本
  35. //...........................
  36. //#define CONNCOUNT_VERSION //座席版
  37. #define CHILD_VERSION //儿童版
  38. #define ENTERPRISE_VERSION //企业版
  39. //...........................
  40. // 儿童版有三个版本:
  41. // 1.只开启CHILD_VERSION宏,就是儿童全能版;
  42. // 2.开启CHILD_VERSION + CONNCOUNT_VERSION :儿童座席版;
  43. // 3.开启CHILD_VERSION + ENTERPRISE_VERSION:儿童企业版;
  44. // 婚纱版:
  45. // 1.全部宏关闭,就是婚纱全能版;
  46. // 2.只开启CONNCOUNT_VERSION,就是婚纱座席版;
  47. // 3.只开启ENTERPRISE_VERSION,就是婚纱企业版;
  48. //GDI+k
  49. #include "Global.h"
  50. #include "CharacterConvert.h"
  51. // #ifndef ULONG_PTR
  52. // #define ULONG_PTR unsigned long*
  53. // #endif
  54. // #include ".\\includes\\gdiplus.h" ////请修改为你的头文件路径
  55. // using namespace Gdiplus;
  56. // #pragma comment(lib, ".\\lib\\gdiplus.lib") ////请修改为你的.lib文件路径
  57. #define FTPSTAT_DOWNLOADSUCCEEDED 2
  58. #define FTPSTAT_UPLOADSUCCEEDED 3
  59. #define FTPSTAT_DOWNLOADFAILED 4
  60. #define FTPSTAT_UPLOADFAILED 5
  61. #define WM_THREADSTART WM_USER+200
  62. #define WM_THREADCLOSE WM_USER+201
  63. #define WM_THREADMSG WM_USER+202
  64. #define WM_ADDTRACELINE WM_USER+203
  65. extern CString BrowseForFolder(HWND hWnd, LPCSTR lpszTitle, UINT nFlags);
  66. extern void DoEvents();
  67. extern void GetAppDir(CString& strAppDir);
  68. extern BOOL WaitWithMessageLoop(HANDLE hEvent, int nTimeout);
  69. PFNSHGETFOLDERPATHA GetFuncPtr_SHGetFolderPathA();
  70. extern HRESULT CreateStartMenuShortcut(LPSTR lpszShortcutFile, LPSTR lpszDescription, LPTSTR lpszRelativeFolder);
  71. extern void RemoveStartMenuShortcut(LPSTR lpszDescription, LPTSTR lpszRelativeFolder);
  72. extern CString GetShortcutTarget(LPCTSTR lpszFilename);
  73. void AutoSizeColumns(CListCtrl *pListCtrl);
  74. BOOL MakeSureDirectoryPathExists(LPCTSTR lpszDirPath);
  75. BOOL IsNumeric(char *buff);
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_)