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.

121 lines
3.0 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1997 - 1999
  3. //
  4. // File: nbprop.h
  5. //
  6. // History:
  7. // 07/22/97 Kenn M. Takara Created.
  8. //
  9. // IPX NetBIOS Broadcasts property sheet and property pages
  10. //
  11. //============================================================================
  12. #ifndef _NBPROP_H
  13. #define _NBPROP_H
  14. #ifndef _INFO_H
  15. #include "info.h"
  16. #endif
  17. #ifndef _RTRSHEET_H
  18. #include "rtrsheet.h"
  19. #endif
  20. /*---------------------------------------------------------------------------
  21. Forward declarations
  22. ---------------------------------------------------------------------------*/
  23. class IPXConnection;
  24. class IpxNBInterfaceProperties;
  25. class IpxNBProperties;
  26. /*---------------------------------------------------------------------------
  27. class: IpxNBIfPageGeneral
  28. This class handles the General page for IPX Summary interface prop sheet.
  29. ---------------------------------------------------------------------------*/
  30. class IpxNBIfPageGeneral :
  31. public RtrPropertyPage
  32. {
  33. public:
  34. IpxNBIfPageGeneral(UINT nIDTemplate, UINT nIDCaption = 0)
  35. : RtrPropertyPage(nIDTemplate, nIDCaption),
  36. m_pIPXConn(NULL)
  37. {};
  38. ~IpxNBIfPageGeneral();
  39. HRESULT Init(IInterfaceInfo *pIfInfo, IPXConnection *pIpxConn,
  40. IpxNBInterfaceProperties * pIPXPropSheet);
  41. protected:
  42. // Override the OnApply() so that we can grab our data from the
  43. // controls in the dialog.
  44. virtual BOOL OnApply();
  45. SPIInterfaceInfo m_spIf;
  46. IPXConnection * m_pIPXConn;
  47. IpxNBInterfaceProperties * m_pIPXPropSheet;
  48. //{{AFX_VIRTUAL(IpxNBIfPageGeneral)
  49. protected:
  50. virtual VOID DoDataExchange(CDataExchange *pDX);
  51. //}}AFX_VIRTUAL
  52. //{{AFX_MSG(IpxNBIfPageGeneral)
  53. virtual BOOL OnInitDialog();
  54. //}}AFX_MSG
  55. //{{AFX_MSG(IpxNBIfPageGeneral
  56. afx_msg void OnChangeButton();
  57. afx_msg void OnInputFilters();
  58. afx_msg void OnOutputFilters();
  59. //}}AFX_MSG
  60. DECLARE_MESSAGE_MAP()
  61. };
  62. /*---------------------------------------------------------------------------
  63. Class: IpxNBInterfaceProperties
  64. This is the property sheet support class for the properties page of
  65. the nodes that appear in the IPX summary node.
  66. ---------------------------------------------------------------------------*/
  67. class IpxNBInterfaceProperties :
  68. public RtrPropertySheet
  69. {
  70. public:
  71. IpxNBInterfaceProperties(ITFSNode *pNode,
  72. IComponentData *pComponentData,
  73. ITFSComponentData *pTFSCompData,
  74. LPCTSTR pszSheetName,
  75. CWnd *pParent = NULL,
  76. UINT iPage=0,
  77. BOOL fScopePane = TRUE);
  78. HRESULT Init(IRtrMgrInfo *pRm, IInterfaceInfo *pInterfaceInfo);
  79. virtual BOOL SaveSheetData();
  80. virtual void CancelSheetData();
  81. // Loads the infobase for this interface.
  82. HRESULT LoadInfoBase(IPXConnection *pIPXConn);
  83. HRESULT GetInfoBase(IInfoBase **ppInfoBase);
  84. protected:
  85. SPIInterfaceInfo m_spIf;
  86. SPIRtrMgrInfo m_spRm;
  87. SPIRtrMgrInterfaceInfo m_spRmIf;
  88. IpxNBIfPageGeneral m_pageGeneral;
  89. SPITFSNode m_spNode;
  90. SPIInfoBase m_spInfoBase;
  91. BOOL m_bClientInfoBase;
  92. };
  93. #endif _NBPROP_H