summaryrefslogtreecommitdiffabout
path: root/BigBrotherView.h
Unidiff
Diffstat (limited to 'BigBrotherView.h') (more/less context) (show whitespace changes)
-rw-r--r--BigBrotherView.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/BigBrotherView.h b/BigBrotherView.h
new file mode 100644
index 0000000..5dda0ac
--- a/dev/null
+++ b/BigBrotherView.h
@@ -0,0 +1,89 @@
1// BigBrotherView.h : interface of the CBigBrotherView class
2//
3/////////////////////////////////////////////////////////////////////////////
4
5class CHostPropertyPages;
6class CBrother;
7class CBigBrotherDoc;
8 typedef CTypedPtrList<CObList,CBrother*>CBrotherList;
9class CBigBrotherView : public CTreeView
10{
11protected: // create from serialization only
12 CBigBrotherView();
13 DECLARE_DYNCREATE(CBigBrotherView)
14
15// Attributes
16public:
17 void SetupExpansion(CBrother *b);
18 void KillOneBrother(CBrother *b);
19 void KillBrother(CBrother *b);
20 void ContextMenu(CPoint pt);
21 void GetFamily(CBrother* b,CBrotherList* bh);
22 int m_iPinging;
23 int m_iPending;
24 int m_iHostDown;
25 int m_iGoingDown;
26 int m_iHost;
27 int m_iNoHost;
28 CImageList m_Images;
29 void UpdateBrother(CBrother* b);
30 void GotoBrother(CBrother *b);
31 void AddBrother(CBrother *b);
32 CBrother* GetCurrentBrother();
33 HTREEITEM FindItem(CBrother* brother);
34 CHostPropertyPages* m_Pages;
35 CBigBrotherDoc* GetDocument();
36
37// Operations
38public:
39
40// Overrides
41 // ClassWizard generated virtual function overrides
42 //{{AFX_VIRTUAL(CBigBrotherView)
43 public:
44 virtual void OnDraw(CDC* pDC); // overridden to draw this view
45 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
46 protected:
47 virtual void OnInitialUpdate(); // called first time after construct
48 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
49 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
50 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
51 //}}AFX_VIRTUAL
52
53// Implementation
54public:
55 virtual ~CBigBrotherView();
56#ifdef _DEBUG
57 virtual void AssertValid() const;
58 virtual void Dump(CDumpContext& dc) const;
59#endif
60
61protected:
62
63// Generated message map functions
64protected:
65 //{{AFX_MSG(CBigBrotherView)
66 afx_msg void OnDestroy();
67 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
68 afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
69 afx_msg void OnReturn(NMHDR* pNMHDR, LRESULT* pResult);
70 afx_msg LRESULT OnActivityCount(WPARAM,LPARAM);
71 afx_msg LRESULT OnUpdateTreeBrother(WPARAM,LPARAM);
72 afx_msg LRESULT OnCheckQueue(WPARAM,LPARAM);
73 afx_msg void OnTimer(UINT nIDEvent);
74 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
75 afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
76 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
77 afx_msg LRESULT OnUpDown(WPARAM,LPARAM);
78 afx_msg void OnItemexpanded(NMHDR* pNMHDR, LRESULT* pResult);
79 afx_msg void OnSetFocus(CWnd* pOldWnd);
80 //}}AFX_MSG
81 DECLARE_MESSAGE_MAP()
82};
83
84#ifndef _DEBUG // debug version in BigBrotherView.cpp
85inline CBigBrotherDoc* CBigBrotherView::GetDocument()
86 { return (CBigBrotherDoc*)m_pDocument; }
87#endif
88
89/////////////////////////////////////////////////////////////////////////////