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.

50 lines
1.6 KiB

  1. /*****************************************************************************\
  2. FILE: Dialogs.h
  3. DESCRIPTION:
  4. This file exists to display dialogs needed during FTP operations.
  5. \*****************************************************************************/
  6. #ifndef _DIALOGS_H
  7. #define _DIALOGS_H
  8. #ifdef ADD_ABOUTBOX
  9. HRESULT DisplayAboutBox(HWND hWnd);
  10. #endif // ADD_ABOUTBOX
  11. HRESULT BrowseForDir(HWND hwndParent, LPCTSTR pszTitle, LPCITEMIDLIST pidlDefaultSelect, LPITEMIDLIST * ppidlSelected);
  12. /*****************************************************************************\
  13. Class: CDownloadDialog
  14. DESCRIPTION:
  15. Display the Downoad Dialog to select a directory to download into.
  16. \*****************************************************************************/
  17. class CDownloadDialog
  18. {
  19. public:
  20. CDownloadDialog();
  21. ~CDownloadDialog(void);
  22. // Public Member Functions
  23. HRESULT ShowDialog(HWND hwndOwner, LPTSTR pszDir, DWORD cchSize, DWORD * pdwDownloadType);
  24. static INT_PTR CALLBACK DownloadDialogProc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam);
  25. protected:
  26. // Private Member Variables
  27. HWND m_hwnd;
  28. LPTSTR m_pszDir;
  29. DWORD m_dwDownloadType;
  30. // Private Member Functions
  31. BOOL _DownloadDialogProc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam);
  32. BOOL _OnCommand(HWND hDlg, WPARAM wParam, LPARAM lParam);
  33. BOOL _InitDialog(HWND hDlg);
  34. HRESULT _DownloadButton(HWND hDlg);
  35. void _BrowseButton(HWND hDlg);
  36. };
  37. #endif // _DIALOGS_H