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.

43 lines
1.2 KiB

  1. // Page1.h: Definition of the Page1 class
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PAGE1_H__C9332CBE_E2D6_4722_B81D_283E2A400E84__INCLUDED_)
  5. #define AFX_PAGE1_H__C9332CBE_E2D6_4722_B81D_283E2A400E84__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "resource.h" // main symbols
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPage1
  12. class DECLSPEC_UUID("C9332CBE-E2D6-4722-B81D-283E2A400E84") CPage1 :
  13. public ITaskPage,
  14. public CComObjectRoot
  15. {
  16. public:
  17. CPage1() : m_pTaskFrame(NULL) {}
  18. ~CPage1() { ATOMICRELEASE(m_pTaskFrame); }
  19. BEGIN_COM_MAP(CPage1)
  20. COM_INTERFACE_ENTRY(ITaskPage)
  21. END_COM_MAP()
  22. DECLARE_NOT_AGGREGATABLE(CPage1)
  23. // ITaskPage
  24. public:
  25. STDMETHOD(SetFrame)(ITaskFrame* pFrame);
  26. STDMETHOD(GetObjectCount)(UINT nArea, UINT *pVal);
  27. STDMETHOD(CreateObject)(UINT nArea, UINT nIndex, REFIID riid, void **ppv);
  28. STDMETHOD(Reinitialize)(ULONG reserved);
  29. private:
  30. ITaskFrame* m_pTaskFrame;
  31. };
  32. EXTERN_C const CLSID CLSID_CPage1;
  33. #endif // !defined(AFX_PAGE1_H__C9332CBE_E2D6_4722_B81D_283E2A400E84__INCLUDED_)