testBTView.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- // testBTView.h : interface of the CTestBTView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TESTBTVIEW_H__7C694EC7_BF0A_43C3_A06D_4FD1C01FF71B__INCLUDED_)
- #define AFX_TESTBTVIEW_H__7C694EC7_BF0A_43C3_A06D_4FD1C01FF71B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "FilesListCtrl.h"
- #include "MonitorWnd.h"
- class CTestBTView : public CView
- {
- protected: // create from serialization only
- CTestBTView();
- DECLARE_DYNCREATE(CTestBTView)
- // Attributes
- public:
- CTestBTDoc* GetDocument();
- CTabCtrl m_TabText;
- CFilesListCtrl m_FilesList;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTestBTView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ShowMessage(long hsocket, char* strMsg);
- virtual ~CTestBTView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTestBTView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnColorSelchange(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnDestroy();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CEdit* InsertItem(long hsocket, string strText);
- bool m_bInit;
- };
- #ifndef _DEBUG // debug version in testBTView.cpp
- inline CTestBTDoc* CTestBTView::GetDocument()
- { return (CTestBTDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TESTBTVIEW_H__7C694EC7_BF0A_43C3_A06D_4FD1C01FF71B__INCLUDED_)