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.

44 lines
1.1 KiB

  1. // TaskSheet.h : Declaration of the CTaskSheet
  2. #ifndef __TASKSHEET_H_INCLUDED_
  3. #define __TASKSHEET_H_INCLUDED_
  4. #include "resource.h" // main symbols
  5. #include <shlwapip.h> // SHCreatePropertyBagOnMemory
  6. #include "TaskFrame.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CTaskSheet
  9. class ATL_NO_VTABLE CTaskSheet :
  10. public CComObjectRootEx<CComSingleThreadModel>,
  11. public CComCoClass<CTaskSheet, &CLSID_TaskSheet>,
  12. public ITaskSheet
  13. {
  14. public:
  15. CTaskSheet(void);
  16. ~CTaskSheet(void);
  17. DECLARE_REGISTRY_RESOURCEID(IDR_TASKSHEET)
  18. DECLARE_NOT_AGGREGATABLE(CTaskSheet)
  19. DECLARE_PROTECT_FINAL_CONSTRUCT()
  20. BEGIN_COM_MAP(CTaskSheet)
  21. COM_INTERFACE_ENTRY(ITaskSheet)
  22. END_COM_MAP()
  23. protected:
  24. HRESULT CreatePropertyBag();
  25. public:
  26. // ITaskSheet
  27. STDMETHOD(GetPropertyBag)(REFIID riid, void **ppv);
  28. STDMETHOD(Run)(ITaskPageFactory *pPageFactory, REFCLSID rclsidStartPage, HWND hwndOwner);
  29. STDMETHOD(Close)();
  30. private:
  31. CComObject<CTaskFrame> *m_pTaskFrame;
  32. IPropertyBag *m_pPropertyBag;
  33. };
  34. #endif //__TASKSHEET_H_INCLUDED_