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.8 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. int BrowseForFolderCallback(HWND hwnd, UINT uMsg, LPARAM lParam);
  32. //
  33. // Dialog Data
  34. //
  35. protected:
  36. enum
  37. {
  38. RADIO_UNLIMITED,
  39. RADIO_LIMITED,
  40. };
  41. //{{AFX_DATA(CDefWebSitePage)
  42. enum { IDD = IDD_DEFAULT_SITE };
  43. int m_nUnlimited;
  44. BOOL m_fEnableDynamic;
  45. BOOL m_fEnableStatic;
  46. BOOL m_fCompatMode;
  47. CString m_strDirectory;
  48. CEdit m_edit_DirectorySize;
  49. CEdit m_edit_Directory;
  50. CStatic m_static_MB;
  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 OnButtonFileTypes();
  77. afx_msg void OnRadioLimited();
  78. afx_msg void OnRadioUnlimited();
  79. afx_msg void OnCheckDynamicCompression();
  80. afx_msg void OnCheckStaticCompression();
  81. afx_msg void OnCheckCompatMode();
  82. afx_msg void OnChangeEditCompressDirectory();
  83. afx_msg void OnDestroy();
  84. //}}AFX_MSG
  85. afx_msg void OnItemChanged();
  86. DECLARE_MESSAGE_MAP()
  87. // HRESULT BuildInstanceList();
  88. // DWORD FetchInstanceSelected();
  89. void SetControlStates();
  90. BOOL HasCompression() const;
  91. private:
  92. CIISCompressionProps * m_ppropCompression;
  93. CMimeTypes * m_ppropMimeTypes;
  94. CStringListEx m_strlMimeTypes;
  95. // CDWordArray m_rgdwInstances;
  96. BOOL m_fFilterPathFound;
  97. LPTSTR m_pPathTemp;
  98. };
  99. //
  100. // Inline Expansion
  101. //
  102. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  103. inline BOOL CDefWebSitePage::HasCompression() const
  104. {
  105. return m_fFilterPathFound
  106. && !CInetPropertyPage::Has10ConnectionLimit() // i.e. is workstation
  107. && CInetPropertyPage::HasCompression();
  108. }
  109. #endif // __DEFWS_H__