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