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.

87 lines
1.9 KiB

  1. //
  2. // attrpage.h : Declaration of ClassAttributePage
  3. //
  4. // Jon Newman <[email protected]>
  5. // Copyright (c) Microsoft Corporation 1997
  6. //
  7. // templated from relation.h JonN 8/8/97
  8. //
  9. #ifndef __ATTRPAGE_H_INCLUDED__
  10. #define __ATTRPAGE_H_INCLUDED__
  11. #include "cookie.h" // Cookie
  12. #include "resource.h" // IDD_CLASS_MEMBERSHIP
  13. class ClassAttributePage : public CPropertyPage
  14. {
  15. public:
  16. ClassAttributePage(ComponentData *pScope, LPDATAOBJECT lpDataObject);
  17. ~ClassAttributePage();
  18. void Load( Cookie& CookieRef );
  19. //
  20. // The schema object that this property page is for.
  21. //
  22. CStringList strlistMandatory;
  23. CStringList strlistSystemMandatory;
  24. CStringList strlistOptional;
  25. CStringList strlistSystemOptional;
  26. Cookie *m_pCookie;
  27. CString m_szAdsPath;
  28. ComponentData *pScopeControl;
  29. LPDATAOBJECT lpScopeDataObj;
  30. //
  31. // The ADSI object that this property page is for
  32. //
  33. IADs* m_pIADsObject;
  34. SchemaObject* m_pSchemaObject;
  35. CString SysClassString;
  36. // Dialog Data
  37. enum { IDD = IDD_CLASS_ATTRIBUTES};
  38. CListBox m_listboxMandatory;
  39. CSchemaObjectsListBox m_listboxOptional;
  40. CString ObjectName;
  41. BOOL fSystemClass;
  42. virtual BOOL OnApply();
  43. protected:
  44. virtual BOOL OnInitDialog();
  45. virtual BOOL OnSetActive();
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. static const DWORD help_map[];
  48. BOOL OnHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, FALSE ); };
  49. BOOL OnContextHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, TRUE ); };
  50. afx_msg void OnButtonOptionalAttributeAdd();
  51. afx_msg void OnButtonOptionalAttributeRemove();
  52. afx_msg void OnOptionalSelChange();
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. #endif // __ATTRPAGE_H_INCLUDED__