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.

167 lines
3.5 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1997 - 1999
  3. //
  4. // File: atlkprop.h
  5. //
  6. // History:
  7. //
  8. // IP Summary property sheet and property pages
  9. //
  10. //============================================================================
  11. #ifndef _ATLKPROP_H
  12. #define _ATLKPROP_H
  13. #ifndef _INFO_H
  14. #include "info.h"
  15. #endif
  16. #ifndef _RTRSHEET_H
  17. #include "rtrsheet.h"
  18. #endif
  19. #ifndef _ATLKENV_H
  20. #include "atlkenv.h"
  21. #endif
  22. class CATLKPropertySheet;
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CATLKGeneralPage dialog
  25. class CATLKGeneralPage :
  26. public RtrPropertyPage
  27. {
  28. public:
  29. CATLKGeneralPage(UINT nIDTemplate, UINT nIDCaption = 0)
  30. : RtrPropertyPage(nIDTemplate, nIDCaption)
  31. {};
  32. ~CATLKGeneralPage();
  33. //{{AFX_DATA(CATLKGeneralPage)
  34. enum { IDD = IDD_RTR_ATLK };
  35. //}}AFX_DATA
  36. HRESULT Init(CATLKPropertySheet * pIPPropSheet, CAdapterInfo* pAdapterInfo);
  37. // Override the OnApply() so that we can grab our data from the
  38. // controls in the dialog.
  39. virtual BOOL OnApply();
  40. //{{AFX_VIRTUAL(CATLKGeneralPage)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  43. //}}AFX_VIRTUAL
  44. afx_msg void OnSeedNetwork();
  45. afx_msg void OnZoneAdd();
  46. afx_msg void OnZoneRemove();
  47. afx_msg void OnZoneGetZones();
  48. afx_msg void OnZoneDef();
  49. void EnableSeedCtrls(bool f);
  50. afx_msg void OnRangeLowerChange();
  51. afx_msg void OnRangeUpperChange();
  52. afx_msg void OnSelchangeCmbAtlkZonedef();
  53. afx_msg void OnSetAsDefault();
  54. afx_msg void OnSelChangeZones();
  55. HRESULT LoadDynForAdapter(bool fForce=false);
  56. // Implementation
  57. protected:
  58. DWORD m_dwDefID;
  59. CAdapterInfo* m_pAdapterInfo;
  60. CEdit m_RangeLower;
  61. CEdit m_RangeUpper;
  62. int m_iRangeLower;
  63. int m_iRangeUpper;
  64. CListBox m_zones;
  65. bool m_fDynFetch;
  66. CString m_szZoneDef;
  67. // CComboBox m_cmbZoneDef;
  68. CSpinButtonCtrl m_spinFrom;
  69. CSpinButtonCtrl m_spinTo;
  70. virtual BOOL OnInitDialog();
  71. CATLKPropertySheet * m_pATLKPropSheet;
  72. void SetZones(bool fForceDyn=false);
  73. void EnableZoneCtrls();
  74. BOOL ValidateNetworkRange();
  75. //{{AFX_MSG(CATLKGeneralPage)
  76. //}}AFX_MSG
  77. DECLARE_MESSAGE_MAP()
  78. };
  79. class CATLKPropertySheet :
  80. public RtrPropertySheet
  81. {
  82. public:
  83. CATLKPropertySheet(ITFSNode *pNode,
  84. IComponentData *pComponentData,
  85. ITFSComponentData *pTFSCompData,
  86. LPCTSTR pszSheetName,
  87. CWnd *pParent = NULL,
  88. UINT iPage=0,
  89. BOOL fScopePane = TRUE);
  90. HRESULT Init(IInterfaceInfo *pIf);
  91. virtual BOOL SaveSheetData();
  92. BOOL IsCancel() {return m_fCancel;};
  93. CATLKEnv m_atlkEnv;
  94. protected:
  95. SPIInterfaceInfo m_spIf;
  96. CATLKGeneralPage m_pageGeneral;
  97. SPITFSNode m_spNode;
  98. };
  99. /////////////////////////////////////////////////////////////////////////////
  100. // CEditNewZoneDialog dialog
  101. class CEditNewZoneDialog : public CDialog
  102. {
  103. // Construction
  104. public:
  105. CEditNewZoneDialog(CWnd* pParent = NULL); // standard constructor
  106. void GetZone(OUT CString& stZone);
  107. // Dialog Data
  108. //{{AFX_DATA(CEditNewZoneDialog)
  109. enum { IDD = IDD_RTR_ATLK_NEWZONE };
  110. CEdit m_editZone;
  111. //}}AFX_DATA
  112. // Overrides
  113. // ClassWizard generated virtual function overrides
  114. //{{AFX_VIRTUAL(CEditNewZoneDialog)
  115. protected:
  116. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  117. //}}AFX_VIRTUAL
  118. // Implementation
  119. protected:
  120. CString m_stZone;
  121. // Generated message map functions
  122. //{{AFX_MSG(CEditNewZoneDialog)
  123. virtual BOOL OnInitDialog();
  124. virtual void OnOK();
  125. virtual void OnCancel();
  126. //}}AFX_MSG
  127. DECLARE_MESSAGE_MAP()
  128. };
  129. #endif _ATLKPROP_H