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.

112 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_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358B__INCLUDED_)
  11. #define AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358B__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. // CMmPolGenProp dialog
  20. class CMmPolGenProp : public CPropertyPageBase
  21. {
  22. DECLARE_DYNCREATE(CMmPolGenProp)
  23. // Construction
  24. public:
  25. CMmPolGenProp();
  26. ~CMmPolGenProp();
  27. // Dialog Data
  28. //{{AFX_DATA(CMmPolGenProp)
  29. enum { IDD = IDP_MM_POLICY_GENERAL };
  30. CListCtrl m_listOffers;
  31. //}}AFX_DATA
  32. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  33. // Context Help Support
  34. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_IDP_MM_POLICY_GENERAL[0]; }
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CMmPolGenProp)
  38. public:
  39. virtual BOOL OnApply();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CMmPolGenProp)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnProperties();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. void PopulateOfferInfo();
  52. };
  53. class CMmPolicyProperties : public CPropertyPageHolderBase
  54. {
  55. friend class CMmPolGenProp;
  56. public:
  57. CMmPolicyProperties(ITFSNode * pNode,
  58. IComponentData * pComponentData,
  59. ITFSComponentData * pTFSCompData,
  60. CMmPolicyInfo * pFltrInfo,
  61. ISpdInfo * pSpdInfo,
  62. LPCTSTR pszSheetName);
  63. virtual ~CMmPolicyProperties();
  64. ITFSComponentData * GetTFSCompData()
  65. {
  66. if (m_spTFSCompData)
  67. m_spTFSCompData->AddRef();
  68. return m_spTFSCompData;
  69. }
  70. HRESULT GetPolicyInfo(CMmPolicyInfo **ppPolInfo)
  71. {
  72. Assert(ppPolInfo);
  73. *ppPolInfo = &m_PolInfo;
  74. return hrOK;
  75. }
  76. public:
  77. CMmPolGenProp m_pageGeneral;
  78. protected:
  79. SPITFSComponentData m_spTFSCompData;
  80. CMmPolicyInfo m_PolInfo;
  81. SPISpdInfo m_spSpdInfo;
  82. BOOL m_fSpdInfoLoaded;
  83. };
  84. #endif // !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)