summaryrefslogtreecommitdiffabout
path: root/ActivityView.h
authorMichael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
committer Michael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
commitfb8b43dbce8bc310718614384297aeaabb9a3cbb (patch) (side-by-side diff)
treeaf9d2c2b71ddffff93a97a02fe26611096b78645 /ActivityView.h
downloadbigbrother-fb8b43dbce8bc310718614384297aeaabb9a3cbb.zip
bigbrother-fb8b43dbce8bc310718614384297aeaabb9a3cbb.tar.gz
bigbrother-fb8b43dbce8bc310718614384297aeaabb9a3cbb.tar.bz2
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/bigbrother/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'ActivityView.h') (more/less context) (show 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 @@
+// 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()
+};
+
+/////////////////////////////////////////////////////////////////////////////