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.

135 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1994-2002 Microsoft Corporation
  3. Module Name :
  4. defws.h
  5. Abstract:
  6. Default Web Site Dialog
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Sergei Antonov (sergeia)
  10. Project:
  11. Internet Services Manager
  12. Revision History:
  13. --*/
  14. #ifndef __DEFWS_H__
  15. #define __DEFWS_H__
  16. class CDefWebSitePage : public CInetPropertyPage
  17. /*++
  18. Class Description:
  19. WWW Errors property page
  20. Public Interface:
  21. CDefWebSitePage : Constructor
  22. CDefWebSitePage : Destructor
  23. --*/
  24. {
  25. DECLARE_DYNCREATE(CDefWebSitePage)
  26. //
  27. // Construction
  28. //
  29. public:
  30. CDefWebSitePage(CInetPropertySheet * pSheet = NULL);
  31. ~CDefWebSitePage();
  32. int BrowseForFolderCallback(HWND hwnd, UINT uMsg, LPARAM lParam);
  33. //
  34. // Dialog Data
  35. //
  36. protected:
  37. enum
  38. {
  39. RADIO_UNLIMITED,
  40. RADIO_LIMITED,
  41. };
  42. //{{AFX_DATA(CDefWebSitePage)
  43. enum { IDD = IDD_DEFAULT_SITE };
  44. int m_nUnlimited;
  45. BOOL m_fEnableDynamic;
  46. BOOL m_fEnableStatic;
  47. BOOL m_fCompatMode;
  48. CString m_strDirectory;
  49. CEdit m_edit_DirectorySize;
  50. CEdit m_edit_Directory;
  51. CButton m_button_Browse;
  52. //}}AFX_DATA
  53. BOOL m_fEnableLimiting;
  54. BOOL m_fCompressionDirectoryChanged;
  55. BOOL m_fInitCompatMode;
  56. CILong m_ilSize;
  57. //
  58. // Overrides
  59. //
  60. protected:
  61. virtual HRESULT FetchLoadedValues();
  62. virtual HRESULT SaveInfo();
  63. // ClassWizard generate virtual function overrides
  64. //{{AFX_VIRTUAL(CDefWebSitePage)
  65. protected:
  66. virtual void DoDataExchange(CDataExchange * pDX);
  67. //}}AFX_VIRTUAL
  68. //
  69. // Implementation
  70. //
  71. protected:
  72. // Generated message map functions
  73. //{{AFX_MSG(CDefWebSitePage)
  74. virtual BOOL OnInitDialog();
  75. afx_msg void OnButtonBrowse();
  76. afx_msg void OnRadioLimited();
  77. afx_msg void OnRadioUnlimited();
  78. afx_msg void OnCheckDynamicCompression();
  79. afx_msg void OnCheckStaticCompression();
  80. afx_msg void OnCheckCompatMode();
  81. afx_msg void OnChangeEditCompressDirectory();
  82. afx_msg void OnDestroy();
  83. //}}AFX_MSG
  84. afx_msg void OnItemChanged();
  85. DECLARE_MESSAGE_MAP()
  86. // HRESULT BuildInstanceList();
  87. // DWORD FetchInstanceSelected();
  88. void SetControlStates();
  89. BOOL HasCompression() const;
  90. private:
  91. CIISCompressionProps * m_ppropCompression;
  92. BOOL m_fFilterPathFound;
  93. LPTSTR m_pPathTemp;
  94. };
  95. //
  96. // Inline Expansion
  97. //
  98. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  99. inline BOOL CDefWebSitePage::HasCompression() const
  100. {
  101. return m_fFilterPathFound
  102. && CInetPropertyPage::IsCompressionConfigurable()
  103. && CInetPropertyPage::HasCompression();
  104. }
  105. #endif // __DEFWS_H__