From fb8b43dbce8bc310718614384297aeaabb9a3cbb Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 05 Jul 2004 01:53:09 +0000 Subject: initial commit into svn repository git-svn-id: http://svn.klever.net/kin/bigbrother/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'BigBrotherView.h') 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 @@ +// BigBrotherView.h : interface of the CBigBrotherView class +// +///////////////////////////////////////////////////////////////////////////// + +class CHostPropertyPages; +class CBrother; +class CBigBrotherDoc; +typedef CTypedPtrList CBrotherList; +class CBigBrotherView : public CTreeView +{ +protected: // create from serialization only + CBigBrotherView(); + DECLARE_DYNCREATE(CBigBrotherView) + +// Attributes +public: + void SetupExpansion(CBrother *b); + void KillOneBrother(CBrother *b); + void KillBrother(CBrother *b); + void ContextMenu(CPoint pt); + void GetFamily(CBrother* b,CBrotherList* bh); + int m_iPinging; + int m_iPending; + int m_iHostDown; + int m_iGoingDown; + int m_iHost; + int m_iNoHost; + CImageList m_Images; + void UpdateBrother(CBrother* b); + void GotoBrother(CBrother *b); + void AddBrother(CBrother *b); + CBrother* GetCurrentBrother(); + HTREEITEM FindItem(CBrother* brother); + CHostPropertyPages* m_Pages; + CBigBrotherDoc* GetDocument(); + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CBigBrotherView) + public: + virtual void OnDraw(CDC* pDC); // overridden to draw this view + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); + protected: + virtual void OnInitialUpdate(); // called first time after construct + virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); + virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); + virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CBigBrotherView(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: + +// Generated message map functions +protected: + //{{AFX_MSG(CBigBrotherView) + afx_msg void OnDestroy(); + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult); + afx_msg void OnReturn(NMHDR* pNMHDR, LRESULT* pResult); + afx_msg LRESULT OnActivityCount(WPARAM,LPARAM); + afx_msg LRESULT OnUpdateTreeBrother(WPARAM,LPARAM); + afx_msg LRESULT OnCheckQueue(WPARAM,LPARAM); + afx_msg void OnTimer(UINT nIDEvent); + afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); + afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult); + afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); + afx_msg LRESULT OnUpDown(WPARAM,LPARAM); + afx_msg void OnItemexpanded(NMHDR* pNMHDR, LRESULT* pResult); + afx_msg void OnSetFocus(CWnd* pOldWnd); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +#ifndef _DEBUG // debug version in BigBrotherView.cpp +inline CBigBrotherDoc* CBigBrotherView::GetDocument() + { return (CBigBrotherDoc*)m_pDocument; } +#endif + +///////////////////////////////////////////////////////////////////////////// -- cgit v0.9.0.2