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.

81 lines
1.7 KiB

  1. #ifndef CLASSGEN_HPP_INCLUDED
  2. #define CLASSGEN_HPP_INCLUDED
  3. class ClassGeneralPage : public CPropertyPage
  4. {
  5. public:
  6. ClassGeneralPage( ComponentData *pScope );
  7. ~ClassGeneralPage();
  8. void Load( Cookie& CookieRef );
  9. //
  10. // The schema object that this property page is for.
  11. //
  12. ComponentData *pScopeControl;
  13. Cookie *pCookie;
  14. SchemaObject *pObject;
  15. IADs *pIADsObject;
  16. BOOL fDataLoaded;
  17. //
  18. // Data members for property fields.
  19. //
  20. CString ObjectName;
  21. CString DisplayName;
  22. CString Description;
  23. CString SysClassString;
  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