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.

139 lines
2.5 KiB

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