00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #pragma once
00023
00024 class CGraphItem;
00025
00026
00027 class CMonitorBarCtrl : public CControlBar
00028 {
00029
00030 public:
00031 CMonitorBarCtrl();
00032 virtual ~CMonitorBarCtrl();
00033
00034
00035 public:
00036 BOOL Create(CWnd* pParentWnd, DWORD dwStyle, UINT nID);
00037 void OnSkinChange();
00038
00039
00040 public:
00041 CControlBar* m_pSnapBar[2];
00042 CGraphItem* m_pTxItem;
00043 CGraphItem* m_pRxItem;
00044 DWORD m_nMaximum;
00045 DWORD m_nCount;
00046 protected:
00047 CBitmap m_bmWatermark;
00048 CRect m_rcTrack;
00049 CRect m_rcTab;
00050 BOOL m_bTab;
00051 HICON m_hTab;
00052
00053
00054 protected:
00055 virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);
00056 virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHandler) {};
00057 virtual int OnToolHitTest(CPoint point, TOOLINFO* pTI) const { return -1; }
00058 virtual void DoPaint(CDC* pDC);
00059 protected:
00060 void PaintHistory(CDC* pDC, CRect* prc);
00061 void PaintCurrent(CDC* pDC, CRect* prc, CGraphItem* pItem);
00062 void PaintTab(CDC* pDC);
00063
00064
00065 protected:
00066 DECLARE_MESSAGE_MAP()
00067 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00068 afx_msg void OnDestroy();
00069 afx_msg void OnSize(UINT nType, int cx, int cy);
00070 afx_msg void OnTimer(UINT nIDEvent);
00071 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00072 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00073 };