StdAfx.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_)
  6. #define AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__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 <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  14. #ifndef _AFX_NO_AFXCMN_SUPPORT
  15. #include <afxcmn.h> // MFC support for Windows Common Controls
  16. #endif // _AFX_NO_AFXCMN_SUPPORT
  17. #include <afxmt.h>
  18. #include <afxsock.h> // MFC socket extensions
  19. #include <afxtempl.h>
  20. #include <shlobj.h>
  21. #include "shfolder.h"
  22. #define FTPSTAT_DOWNLOADSUCCEEDED 2
  23. #define FTPSTAT_UPLOADSUCCEEDED 3
  24. #define FTPSTAT_DOWNLOADFAILED 4
  25. #define FTPSTAT_UPLOADFAILED 5
  26. #define WM_THREADSTART WM_USER+200
  27. #define WM_THREADCLOSE WM_USER+201
  28. #define WM_THREADMSG WM_USER+202
  29. #define WM_ADDTRACELINE WM_USER+203
  30. extern CString BrowseForFolder(HWND hWnd, LPCSTR lpszTitle, UINT nFlags);
  31. extern void DoEvents();
  32. extern void GetAppDir(CString& strAppDir);
  33. extern BOOL WaitWithMessageLoop(HANDLE hEvent, int nTimeout);
  34. PFNSHGETFOLDERPATHA GetFuncPtr_SHGetFolderPathA();
  35. extern HRESULT CreateStartMenuShortcut(LPSTR lpszShortcutFile, LPSTR lpszDescription, LPTSTR lpszRelativeFolder);
  36. extern void RemoveStartMenuShortcut(LPSTR lpszDescription, LPTSTR lpszRelativeFolder);
  37. extern CString GetShortcutTarget(LPCTSTR lpszFilename);
  38. void AutoSizeColumns(CListCtrl *pListCtrl);
  39. BOOL MakeSureDirectoryPathExists(LPCTSTR lpszDirPath);
  40. BOOL IsNumeric(char *buff);
  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  43. #include "Global.h"
  44. #endif // !defined(AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_)