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.

80 lines
1.8 KiB

  1. #ifndef CLASSGEN_HPP_INCLUDED
  2. #define CLASSGEN_HPP_INCLUDED
  3. #include "CPropertyPageAutoDelete.hpp"
  4. class ClassGeneralPage : public CPropertyPageAutoDelete
  5. {
  6. public:
  7. ClassGeneralPage( ComponentData *pScope );
  8. ~ClassGeneralPage();
  9. void Load( Cookie& CookieRef );
  10. //
  11. // The schema object that this property page is for.
  12. //
  13. ComponentData *pScopeControl;
  14. Cookie *pCookie;
  15. SchemaObject *pObject;
  16. IADs *pIADsObject;
  17. BOOL fDataLoaded;
  18. //
  19. // Data members for property fields.
  20. //
  21. CString ObjectName;
  22. CString DisplayName;
  23. CString Description;
  24. CString OidString;
  25. CString ClassType;
  26. CString Category;
  27. BOOL Displayable;
  28. BOOL Defunct;
  29. //
  30. // DDX Associated variables that we care about.
  31. //
  32. CString DDXDescription;
  33. CString DDXCategory;
  34. BOOL DDXDisplayable;
  35. BOOL DDXDefunct;
  36. virtual BOOL OnApply();
  37. virtual BOOL OnInitDialog();
  38. virtual void DoDataExchange( CDataExchange *pDX );
  39. virtual BOOL OnSetActive();
  40. BOOL OnHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, FALSE ); };
  41. BOOL OnContextHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, TRUE ); };
  42. void OnDeactivateClick();
  43. protected:
  44. static const DWORD help_map[];
  45. afx_msg void OnButtonCategoryChange();
  46. HRESULT ChangeDefunctState( BOOL DDXDefunct,
  47. BOOL & Defunct,
  48. IADsPropertyList * pPropertyList,
  49. BOOL & fApplyAbort,
  50. BOOL & fApplyFailed );
  51. private:
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. #endif