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.

70 lines
2.0 KiB

  1. #if !defined(AFX_HMGRAPHVIEWEVENTSINK_H__C54EFB02_3555_11D3_BE19_0000F87A3912__INCLUDED_)
  2. #define AFX_HMGRAPHVIEWEVENTSINK_H__C54EFB02_3555_11D3_BE19_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // HMGraphViewEventSink.h : header file
  7. //
  8. class CSplitPaneResultsView;
  9. class _DHMGraphView;
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CHMGraphViewEventSink command target
  12. class CHMGraphViewEventSink : public CCmdTarget
  13. {
  14. DECLARE_DYNCREATE(CHMGraphViewEventSink)
  15. // Construction/Destruction
  16. public:
  17. CHMGraphViewEventSink(); // protected constructor used by dynamic creation
  18. virtual ~CHMGraphViewEventSink();
  19. // Attributes
  20. public:
  21. CSplitPaneResultsView* GetResultsViewPtr();
  22. void SetResultsViewPtr(CSplitPaneResultsView* pView);
  23. _DHMGraphView* GetGraphViewCtrl() { return m_pGraphView; }
  24. void SetGraphViewCtrl(_DHMGraphView* pGraphCtrl) { m_pGraphView = pGraphCtrl; }
  25. protected:
  26. CSplitPaneResultsView* m_pView;
  27. DWORD m_dwEventCookie;
  28. _DHMGraphView* m_pGraphView;
  29. // Operations
  30. public:
  31. HRESULT HookUpEventSink(LPUNKNOWN lpControlUnknown);
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CHMGraphViewEventSink)
  35. public:
  36. virtual void OnFinalRelease();
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. protected:
  40. // Generated message map functions
  41. //{{AFX_MSG(CHMGraphViewEventSink)
  42. // NOTE - the ClassWizard will add and remove member functions here.
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. // Generated OLE dispatch map functions
  46. //{{AFX_DISPATCH(CHMGraphViewEventSink)
  47. afx_msg void OnChangeStyle(long lNewStyle);
  48. //}}AFX_DISPATCH
  49. DECLARE_DISPATCH_MAP()
  50. DECLARE_INTERFACE_MAP()
  51. };
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_HMGRAPHVIEWEVENTSINK_H__C54EFB02_3555_11D3_BE19_0000F87A3912__INCLUDED_)