5 #ifndef _INC_GraphPen_H
6 #define _INC_GraphPen_H
11 #include "../CGraphCfg.h"
12 #include "../CGraphData.h"
18 class CGraphPen :
public CButton,
public CGraphData
28 CGraphPenCfg* m_pPenCfg;
29 int m_iPenCfgUniqueID;
38 CGraphPen(CGraphPenCfg *pCfg);
42 void DrawItem(CDC& dc, LPDRAWITEMSTRUCT pDIS);
47 void DoFit(
int fitType);
49 CGraphPenCfg* get_PenCfg()
const
51 ASSERT(m_pPenCfg!=
nullptr);
54 bool CheckSamePenSource(CGraphPenCfg* pPenCfg)
56 ASSERT(pPenCfg !=
nullptr);
57 if (pPenCfg->GetUniqueID() == m_iPenCfgUniqueID)
65 bool IsDataVisible()
const
67 ASSERT(m_pPenCfg !=
nullptr);
68 return(!m_pPenCfg->m_fMasked);
71 const CGraphPen& operator=(
const CGraphPen& pen)
74 ASSERT(pen.m_pPenCfg !=
nullptr);
75 m_pPenCfg = pen.m_pPenCfg;
76 m_iPenCfgUniqueID = m_pPenCfg->GetUniqueID();
87 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
89 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
99 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
100 afx_msg
void OnInitMenu(CMenu* pMenu);
101 afx_msg
void OnContextMenu(
CWnd* pWnd,
CPoint point);
104 DECLARE_MESSAGE_MAP()
#define ASSERT(exp)
Definition: cDebugAssert.h:87
Definition: GrayGraph.cpp:29
double GraphVal_t
this is the value type we are plotting. Must also be able to hold GraphTime_t.
Definition: cGraphCfg.h:66
cWndHandle CWnd
Definition: cWndHandle.h:669
cPoint2i CPoint
Compatible with MFC 2d CPoint,CRect.
Definition: cPoint2.h:65
int ITERATE_t
like size_t but signed
Definition: Index.h:28