Leaked source code of windows server 2003
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.

104 lines
2.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. snappp.h
  7. Brings up the snap-in property page
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_SNAPPP_H__770C838B_17E8_11D1_B94F_00C04FBF914A__INCLUDED_)
  11. #define AFX_SNAPPP_H__770C838B_17E8_11D1_B94F_00C04FBF914A__INCLUDED_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CSnapinPropGeneral dialog
  17. class CSnapinPropGeneral : public CPropertyPageBase
  18. {
  19. DECLARE_DYNCREATE(CSnapinPropGeneral)
  20. // Construction
  21. public:
  22. CSnapinPropGeneral();
  23. ~CSnapinPropGeneral();
  24. // Dialog Data
  25. //{{AFX_DATA(CSnapinPropGeneral)
  26. enum { IDD = IDD_SNAPIN_PP_GENERAL };
  27. CButton m_checkValidateServers;
  28. BOOL m_fLongName;
  29. int m_nOrderByName;
  30. CButton m_checkLongName;
  31. CButton m_buttonSortByName;
  32. CButton m_buttonSortByIP;
  33. BOOL m_fValidateServers;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CSnapinPropGeneral)
  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(CSnapinPropGeneral)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnChange();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. public:
  52. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  53. virtual DWORD * GetHelpMap() { return WinsGetHelpMap(CSnapinPropGeneral::IDD);};
  54. BOOL m_bDisplayServerOrderChanged; // to check if the ServerOrder property is changed
  55. BOOL m_bDisplayFQDNChanged; // to check if display FQDN is changed
  56. UINT m_uImage;
  57. };
  58. class CSnapinProperties : public CPropertyPageHolderBase
  59. {
  60. friend class CSnapinProperties;
  61. public:
  62. CSnapinProperties(ITFSNode * pNode,
  63. IComponentData * pComponentData,
  64. ITFSComponentData * pTFSCompData,
  65. LPCTSTR pszSheetName);
  66. virtual ~CSnapinProperties();
  67. ITFSComponentData * GetTFSCompData()
  68. {
  69. if (m_spTFSCompData)
  70. m_spTFSCompData->AddRef();
  71. return m_spTFSCompData;
  72. }
  73. public:
  74. CSnapinPropGeneral m_pageGeneral;
  75. protected:
  76. SPITFSComponentData m_spTFSCompData;
  77. };
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  80. #endif // !defined(AFX_SNAPPP_H__770C838B_17E8_11D1_B94F_00C04FBF914A__INCLUDED_)