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.

58 lines
1.5 KiB

  1. // HMScopeItem.h: interface for the CHMScopeItem class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMSCOPEITEM_H__7265EAF9_CCCB_11D2_BD91_0000F87A3912__INCLUDED_)
  5. #define AFX_HMSCOPEITEM_H__7265EAF9_CCCB_11D2_BD91_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ScopePaneItem.h"
  10. class CHMObject;
  11. class CHMScopeItem : public CScopePaneItem
  12. {
  13. DECLARE_DYNCREATE(CHMScopeItem)
  14. // Construction/Destruction
  15. public:
  16. CHMScopeItem();
  17. virtual ~CHMScopeItem();
  18. // State Management
  19. public:
  20. virtual int OnChangeChildState(int iNewState);
  21. // MMC-Related Item Members
  22. public:
  23. bool InsertItem(int iIndex);
  24. bool DeleteItem();
  25. bool SetItem();
  26. virtual HRESULT WriteExtensionData(LPSTREAM pStream);
  27. // Back Pointer to HMObject
  28. public:
  29. CHMObject* GetObjectPtr();
  30. void SetObjectPtr(CHMObject* pObject);
  31. protected:
  32. CHMObject* m_pObject;
  33. // MMC Notify Handlers
  34. public:
  35. virtual HRESULT OnCutOrMove();
  36. virtual HRESULT OnCommand(long lCommandID);
  37. virtual HRESULT OnDelete(BOOL bConfirm=TRUE); // v-marfin 60298
  38. virtual HRESULT OnExpand(BOOL bExpand);
  39. virtual HRESULT OnPaste(LPDATAOBJECT pSelectedItems, LPDATAOBJECT* ppCopiedItems);
  40. virtual HRESULT OnQueryPaste(LPDATAOBJECT pDataObject);
  41. virtual HRESULT OnRefresh();
  42. virtual HRESULT OnRename(const CString& sNewName);
  43. };
  44. #include "HMScopeItem.inl"
  45. #endif // !defined(AFX_HMSCOPEITEM_H__7265EAF9_CCCB_11D2_BD91_0000F87A3912__INCLUDED_)