Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.2 KiB

  1. /*****************************************************************************\
  2. FILE: ftpdhlp.h
  3. DESCRIPTION:
  4. Dialog box helper. This class will fill in the parts of the dialog
  5. that pertain to the FTP information
  6. \*****************************************************************************/
  7. #ifndef _FTPDIALOGTEMPLATE_H
  8. #define _FTPDIALOGTEMPLATE_H
  9. /*****************************************************************************\
  10. CLASS: CFtpDialogTemplate
  11. DESCRIPTION:
  12. Dialog box helper. This class will fill in the parts of the dialog
  13. that pertain to the FTP information
  14. \*****************************************************************************/
  15. class CFtpDialogTemplate
  16. {
  17. public:
  18. HRESULT InitDialog(HWND hdlg, BOOL fEditable, UINT id, CFtpFolder * pff, CFtpPidlList * pfpl);
  19. HRESULT InitDialogWithFindData(HWND hDlg, UINT id, CFtpFolder * pff, const FTP_FIND_DATA * pwfd, LPCWIRESTR pwWirePath, LPCWSTR pwzDisplayPath);
  20. BOOL OnClose(HWND hdlg, HWND hwndBrowser, CFtpFolder * pff, CFtpPidlList * pfpl);
  21. BOOL OnDestroy(HWND hdlg, BOOL fEditable, UINT id, CFtpFolder* pff, CFtpPidlList* pPidlList);
  22. BOOL HasNameChanged(HWND hdlg, CFtpFolder * pff, CFtpPidlList * pPidlList);
  23. static int _InitSizeTally(LPVOID pvPidl, LPVOID pvSizeHolder);
  24. private:
  25. HRESULT _ReinsertDlgText(HWND hwnd, LPCVOID pv, LPCTSTR ptszFormat);
  26. HRESULT _ReplaceIcon(HWND hwnd, HICON hicon);
  27. HRESULT _InitIcon(HWND hwnd, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  28. HRESULT _InitNameEditable(HWND hwnd, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  29. HRESULT _InitName(HWND hwnd, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  30. HRESULT _InitType(HWND hwnd, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  31. HRESULT _InitLocation(HWND hwnd, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  32. HRESULT _InitSize(HWND hwnd, HWND hwndLabel, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  33. HRESULT _InitTime(HWND hwnd, HWND hwndLabel, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  34. HRESULT _InitCount(HWND hwnd, CFtpFolder * pff, CFtpPidlList * pflHfpl);
  35. BOOL m_fEditable;
  36. };
  37. #endif // _FTPDIALOGTEMPLATE_H