summaryrefslogtreecommitdiffabout
path: root/ActivityView.h
Unidiff
Diffstat (limited to 'ActivityView.h') (more/less context) (ignore whitespace changes)
-rw-r--r--ActivityView.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/ActivityView.h b/ActivityView.h
new file mode 100644
index 0000000..aea3503
--- a/dev/null
+++ b/ActivityView.h
@@ -0,0 +1,65 @@
1// ActivityView.h : header file
2//
3
4/////////////////////////////////////////////////////////////////////////////
5// CActivityView view
6
7class CBrother;
8 typedef CTypedPtrList<CObList,CBrother*>CBrotherList;
9class CActivityView : public CScrollView
10{
11protected:
12 CActivityView(); // protected constructor used by dynamic creation
13 DECLARE_DYNCREATE(CActivityView)
14
15// Attributes
16public:
17 void UpdateTip(UINT nFlags,CPoint point);
18 BOOL m_bPainted;
19 CTimeSpan m_TimeSpan;
20 CTime m_BeginTime;
21 CToolTipCtrl m_ToolTip;
22 COLORREF m_Background;
23 CBrotherList *m_Brothers;
24 void PaintHost(CBrother *b,CDC *pDC,CRect& rc,CTime* bTime=NULL,CTimeSpan* tSpan=NULL);
25 COLORREF m_Dim;
26 COLORREF m_Yellow;
27 COLORREF m_Green;
28 COLORREF m_Red;
29 COLORREF m_BoxColor;
30
31// Operations
32public:
33
34// Overrides
35 // ClassWizard generated virtual function overrides
36 //{{AFX_VIRTUAL(CActivityView)
37 public:
38 virtual BOOL PreTranslateMessage(MSG* pMsg);
39 protected:
40 virtual void OnDraw(CDC* pDC); // overridden to draw this view
41 virtual void OnInitialUpdate(); // first time after construct
42 virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
43 //}}AFX_VIRTUAL
44
45// Implementation
46protected:
47 virtual ~CActivityView();
48#ifdef _DEBUG
49 virtual void AssertValid() const;
50 virtual void Dump(CDumpContext& dc) const;
51#endif
52
53 // Generated message map functions
54 //{{AFX_MSG(CActivityView)
55 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
56 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
57 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
58 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
59 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
60 afx_msg void OnSize(UINT nType, int cx, int cy);
61 //}}AFX_MSG
62 DECLARE_MESSAGE_MAP()
63};
64
65/////////////////////////////////////////////////////////////////////////////