NPView.h
上传用户:chenhai826
上传日期:2007-04-11
资源大小:72k
文件大小:2k
- // NPView.h : interface of the CNPView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_NPVIEW_H__736C6EC5_693F_4B9C_BC0C_69DB3E10DB3F__INCLUDED_)
- #define AFX_NPVIEW_H__736C6EC5_693F_4B9C_BC0C_69DB3E10DB3F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CNPDoc;
- class CAttackThread;
- class CMonitorThread;
- class CNPView : public CListView
- {
- protected: // create from serialization only
- CNPView();
- DECLARE_DYNCREATE(CNPView)
- // Attributes
- public:
- CNPDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CNPView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CNPView();
- void KillAllThreads(void);
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- CMonitorThread *m_pMonThread;
- bool m_bAttacking;
- bool m_bDisplay;
- // Generated message map functions
- protected:
- void AddString(int Event,int password);
- //{{AFX_MSG(CNPView)
- afx_msg void OnAttack();
- afx_msg void OnStop();
- afx_msg void OnUpdateAttack(CCmdUI* pCmdUI);
- afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
- afx_msg void OnStopDisplay();
- afx_msg void OnUpdateStopDisplay(CCmdUI* pCmdUI);
- //}}AFX_MSG
- afx_msg LRESULT OnThreadReport(WPARAM,LPARAM);
- afx_msg LRESULT OnThreadNumUpdate(WPARAM,LPARAM);
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in NPView.cpp
- inline CNPDoc* CNPView::GetDocument()
- { return (CNPDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_NPVIEW_H__736C6EC5_693F_4B9C_BC0C_69DB3E10DB3F__INCLUDED_)