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.

49 lines
1.5 KiB

  1. // HMResultsPaneItem.h: interface for the CHMResultsPaneItem class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMRESULTSPANEITEM_H__988259DA_B71C_11D2_BD74_0000F87A3912__INCLUDED_)
  5. #define AFX_HMRESULTSPANEITEM_H__988259DA_B71C_11D2_BD74_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ResultsPaneItem.h"
  10. #include "Constants.h"
  11. class CHMResultsPaneItem : public CResultsPaneItem
  12. {
  13. DECLARE_DYNCREATE(CHMResultsPaneItem)
  14. // Construction/Destruction
  15. public:
  16. CHMResultsPaneItem();
  17. virtual ~CHMResultsPaneItem();
  18. // MMC-Related Members
  19. public:
  20. virtual bool InsertItem(CResultsPane* pPane, int iIndex, bool bResizeColumns = false);
  21. virtual bool SetItem(CResultsPane* pPane);
  22. virtual bool RemoveItem(CResultsPane* pPane);
  23. // Results Pane Location of Item - for split pane results view
  24. public:
  25. bool IsUpperPane() const { return m_Pane==Upper; }
  26. bool IsLowerPane() const { return m_Pane==Lower; }
  27. bool IsStatsPane() const { return m_Pane==Stats; }
  28. void SetToUpperPane() { m_Pane = Upper; }
  29. void SetToLowerPane() { m_Pane = Lower; }
  30. void SetToStatsPane() { m_Pane = Stats; }
  31. protected:
  32. SplitResultsPane m_Pane;
  33. // MMC Notify Handlers
  34. public:
  35. virtual HRESULT OnAddMenuItems(LPCONTEXTMENUCALLBACK piCallback,long __RPC_FAR *pInsertionAllowed);
  36. virtual HRESULT OnCommand(CResultsPane* pPane, long lCommandID);
  37. };
  38. #endif // !defined(AFX_HMRESULTSPANEITEM_H__988259DA_B71C_11D2_BD74_0000F87A3912__INCLUDED_)