Source code of Windows XP (NT5)
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.

147 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1994-2001 Microsoft Corporation
  3. Module Name :
  4. fvdir.h
  5. Abstract:
  6. FTP Virtual Directory Properties dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Sergei Antonov (sergeia)
  10. Project:
  11. Internet Services Manager
  12. Revision History:
  13. --*/
  14. #ifndef __FVDIR_H__
  15. #define __FVDIR_H__
  16. class CFtpDirectoryPage : public CInetPropertyPage
  17. /*++
  18. Class Description:
  19. FTP Virtual Directory Page.
  20. Public Interface:
  21. CFtpDirectoryPage : Constructor
  22. ~CFtpDirectoryPage : Destructor
  23. --*/
  24. {
  25. DECLARE_DYNCREATE(CFtpDirectoryPage)
  26. //
  27. // Construction
  28. //
  29. public:
  30. CFtpDirectoryPage(
  31. IN CInetPropertySheet * pSheet = NULL,
  32. IN BOOL fHome = FALSE
  33. );
  34. ~CFtpDirectoryPage();
  35. int BrowseForFolderCallback(HWND hwnd, UINT uMsg, LPARAM lParam);
  36. //
  37. // Dialog Data
  38. //
  39. protected:
  40. //
  41. // Directory Type
  42. //
  43. enum
  44. {
  45. RADIO_DIRECTORY,
  46. RADIO_NETDIRECTORY,
  47. };
  48. //
  49. // Unix/DOS radio button values
  50. //
  51. enum
  52. {
  53. RADIO_UNIX,
  54. RADIO_DOS,
  55. };
  56. //{{AFX_DATA(CFtpDirectoryPage)
  57. enum { IDD = IDD_FTP_DIRECTORY_PROPERTIES };
  58. int m_nUnixDos;
  59. int m_nPathType;
  60. BOOL m_fRead;
  61. BOOL m_fWrite;
  62. BOOL m_fLogAccess;
  63. CString m_strPath;
  64. CStatic m_static_PathPrompt;
  65. CButton m_check_LogAccess;
  66. CButton m_check_Write;
  67. CButton m_check_Read;
  68. CButton m_button_AddPathType;
  69. CButton m_button_Browse;
  70. CButton m_radio_Dir;
  71. CEdit m_edit_Path;
  72. //}}AFX_DATA
  73. BOOL m_fOriginallyUNC;
  74. DWORD m_dwAccessPerms;
  75. CString m_strAlias;
  76. CButton m_radio_Unc;
  77. //
  78. // Overrides
  79. //
  80. protected:
  81. virtual HRESULT FetchLoadedValues();
  82. virtual HRESULT SaveInfo();
  83. //{{AFX_VIRTUAL(CFtpDirectoryPage)
  84. public:
  85. protected:
  86. virtual void DoDataExchange(CDataExchange * pDX);
  87. //}}AFX_VIRTUAL
  88. //
  89. // Implementation
  90. //
  91. protected:
  92. //{{AFX_MSG(CFtpDirectoryPage)
  93. afx_msg void OnButtonBrowse();
  94. afx_msg void OnChangeEditPath();
  95. afx_msg void OnCheckWrite();
  96. afx_msg void OnButtonEditPathType();
  97. afx_msg void OnRadioDir();
  98. afx_msg void OnRadioUnc();
  99. virtual BOOL OnInitDialog();
  100. //}}AFX_MSG
  101. afx_msg void OnItemChanged();
  102. DECLARE_MESSAGE_MAP()
  103. void SetStateByType();
  104. void SetPathType(LPCTSTR lpstrPath);
  105. void ChangeTypeTo(int nNewType);
  106. BOOL IsHome() const { return m_fHome; }
  107. private:
  108. BOOL m_fHome;
  109. CString m_strOldPath;
  110. CString m_strUserName;
  111. CString m_strPassword;
  112. CString m_strPathPrompt;
  113. CString m_strSharePrompt;
  114. LPTSTR m_pPathTemp;
  115. CString m_strBrowseTitle;
  116. };
  117. #endif // __FVDIR_H__