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.

124 lines
2.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. Servpp.h
  7. Server properties header file
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_MMSAPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358D__INCLUDED_)
  11. #define AFX_MMSAPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358D__INCLUDED_
  12. #ifndef _SPDDB_H
  13. #include "spddb.h"
  14. #endif
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CMmSAGenProp dialog
  20. class CMmSAGenProp : public CPropertyPageBase
  21. {
  22. DECLARE_DYNCREATE(CMmSAGenProp)
  23. // Construction
  24. public:
  25. CMmSAGenProp();
  26. ~CMmSAGenProp();
  27. // Dialog Data
  28. //{{AFX_DATA(CMmSAGenProp)
  29. enum { IDD = IDP_MM_SA_GENERAL };
  30. CListCtrl m_listQmSAs;
  31. //}}AFX_DATA
  32. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  33. // Context Help Support
  34. virtual DWORD * GetHelpMap()
  35. {
  36. return (DWORD *) &g_aHelpIDs_IDP_MM_SA_GENERAL[0];
  37. }
  38. // Overrides
  39. // ClassWizard generate virtual function overrides
  40. //{{AFX_VIRTUAL(CMmSAGenProp)
  41. public:
  42. virtual BOOL OnApply();
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. protected:
  48. // Generated message map functions
  49. //{{AFX_MSG(CMmSAGenProp)
  50. virtual BOOL OnInitDialog();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. void LoadQmSAs();
  54. void PopulateSAInfo();
  55. };
  56. class CMmSAProperties : public CPropertyPageHolderBase
  57. {
  58. friend class CMmSAGenProp;
  59. public:
  60. CMmSAProperties(ITFSNode * pNode,
  61. IComponentData * pComponentData,
  62. ITFSComponentData * pTFSCompData,
  63. CMmSA * pSA,
  64. ISpdInfo * pSpdInfo,
  65. LPCTSTR pszSheetName);
  66. virtual ~CMmSAProperties();
  67. ITFSComponentData * GetTFSCompData()
  68. {
  69. if (m_spTFSCompData)
  70. m_spTFSCompData->AddRef();
  71. return m_spTFSCompData;
  72. }
  73. HRESULT GetSAInfo(CMmSA ** ppSA)
  74. {
  75. Assert(ppSA);
  76. *ppSA = &m_SA;
  77. return hrOK;
  78. }
  79. HRESULT GetSpdInfo(ISpdInfo ** ppSpdInfo)
  80. {
  81. Assert(ppSpdInfo);
  82. *ppSpdInfo = NULL;
  83. SetI((LPUNKNOWN *) ppSpdInfo, m_spSpdInfo);
  84. return hrOK;
  85. }
  86. public:
  87. CMmSAGenProp m_pageGeneral;
  88. protected:
  89. SPITFSComponentData m_spTFSCompData;
  90. CMmSA m_SA;
  91. SPISpdInfo m_spSpdInfo;
  92. BOOL m_fSpdInfoLoaded;
  93. };
  94. #endif // !defined(AFX_MMSAPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)