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.

127 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. accessdl.h
  5. Abstract:
  6. Access Dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. class COMDLL CIPAccessDlg : public CDialog
  14. /*++
  15. Class Description:
  16. Access description editor dialog. If constructed with a NULL access
  17. descriptor pointer, the access descriptor object will be allocated.
  18. Otherwise, the dialog will work with the given access descriptor
  19. Public Interface:
  20. CIPAccessDlg : Constructor
  21. --*/
  22. {
  23. //
  24. // Construction
  25. //
  26. public:
  27. //
  28. // standard constructor
  29. //
  30. CIPAccessDlg(
  31. IN BOOL fDenyAccessMode,
  32. IN OUT CIPAccessDescriptor *& pAccess,
  33. IN CObListPlus * poblAccessList = NULL,
  34. IN CWnd * pParent = NULL,
  35. IN BOOL fAllowDomains = FALSE
  36. );
  37. //
  38. // Dialog Data
  39. //
  40. protected:
  41. //
  42. // Must match type order
  43. //
  44. enum
  45. {
  46. RADIO_SINGLE,
  47. RADIO_MULTIPLE,
  48. RADIO_DOMAIN,
  49. };
  50. //{{AFX_DATA(CIPAccessDlg)
  51. enum { IDD = IDD_IP_ACCESS };
  52. int m_nStyle;
  53. CEdit m_edit_Domain;
  54. CStatic m_static_IpAddress;
  55. CStatic m_static_SubnetMask;
  56. CButton m_button_DNS;
  57. CButton m_button_OK;
  58. //}}AFX_DATA
  59. CButton m_radio_Domain;
  60. CIPAddressCtl m_ipa_IPAddress;
  61. CIPAddressCtl m_ipa_SubnetMask;
  62. //
  63. // Overrides
  64. //
  65. protected:
  66. //{{AFX_VIRTUAL(CIPAccessDlg)
  67. protected:
  68. virtual void DoDataExchange(CDataExchange * pDX);
  69. //}}AFX_VIRTUAL
  70. //
  71. // Implementation
  72. //
  73. protected:
  74. // Generated message map functions
  75. //{{AFX_MSG(CIPAccessDlg)
  76. virtual BOOL OnInitDialog();
  77. virtual void OnOK();
  78. virtual void OnCancel();
  79. afx_msg void OnRadioMultiple();
  80. afx_msg void OnRadioSingle();
  81. afx_msg void OnRadioDomain();
  82. afx_msg void OnButtonDns();
  83. //}}AFX_MSG
  84. afx_msg void OnItemChanged();
  85. DECLARE_MESSAGE_MAP()
  86. void SetControlStates(
  87. IN int nStyle
  88. );
  89. private:
  90. BOOL m_fNew;
  91. BOOL m_fDenyAccessMode;
  92. BOOL m_fAllowDomains;
  93. CString m_strIPAddress;
  94. CString m_strNetworkID;
  95. CString m_strDomainName;
  96. CIPAccessDescriptor *& m_pAccess;
  97. CObListPlus * m_poblAccessList;
  98. };