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.

93 lines
2.4 KiB

  1. //
  2. // relation.h : Declaration of ClassRelationshipPage
  3. //
  4. // Jon Newman <[email protected]>
  5. // Copyright (c) Microsoft Corporation 1997
  6. //
  7. #ifndef __RELATION_H_INCLUDED__
  8. #define __RELATION_H_INCLUDED__
  9. #include "cookie.h" // Cookie
  10. #include "resource.h" // IDD_CLASS_RELATIONSHIP
  11. class ClassRelationshipPage : public CPropertyPage
  12. {
  13. public:
  14. ClassRelationshipPage( ComponentData *pScope,
  15. LPDATAOBJECT lpDataObject );
  16. ~ClassRelationshipPage();
  17. void Load( Cookie& CookieRef );
  18. //
  19. // The schema object that this property page is for.
  20. //
  21. Cookie *m_pCookie;
  22. CString m_szAdsPath;
  23. ComponentData* m_pScopeControl;
  24. LPDATAOBJECT m_lpScopeDataObj;
  25. //
  26. // The ADSI object that this property page is for
  27. //
  28. IADs *m_pIADsObject;
  29. SchemaObject* m_pSchemaObject;
  30. CString SysClassString;
  31. // Dialog Data
  32. enum { IDD = IDD_CLASS_RELATIONSHIP};
  33. CStatic m_staticParent;
  34. CSchemaObjectsListBox m_listboxAuxiliary;
  35. CSchemaObjectsListBox m_listboxSuperior;
  36. CString ObjectName;
  37. CString ParentClass;
  38. BOOL fSystemClass;
  39. // Overrides
  40. // ClassWizard generate virtual function overrides
  41. public:
  42. virtual BOOL OnApply();
  43. protected:
  44. virtual BOOL OnInitDialog();
  45. virtual BOOL OnSetActive();
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. afx_msg void OnButtonAuxiliaryClassAdd();
  51. afx_msg void OnButtonAuxiliaryClassRemove();
  52. afx_msg void OnButtonSuperiorClassRemove();
  53. afx_msg void OnButtonSuperiorClassAdd();
  54. afx_msg void OnAuxiliarySelChange();
  55. afx_msg void OnSuperiorSelChange();
  56. static const DWORD help_map[];
  57. BOOL OnHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, FALSE ); };
  58. BOOL OnContextHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, TRUE ); };
  59. DECLARE_MESSAGE_MAP()
  60. public:
  61. // User defined variables
  62. CStringList strlistAuxiliary;
  63. CStringList strlistSystemAuxiliary;
  64. CStringList strlistSuperior;
  65. CStringList strlistSystemSuperior;
  66. };
  67. #endif // __RELATION_H_INCLUDED__