www.pudn.com > SnifferPro.rar > MulPackView.h
#if !defined(AFX_MULPACKVIEW_H__C6003A1F_ED27_42B5_B1EE_7ED5FB9E5A66__INCLUDED_) #define AFX_MULPACKVIEW_H__C6003A1F_ED27_42B5_B1EE_7ED5FB9E5A66__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // MulPackView.h : header file // #include//包含CView类 #include // axftmp1.h是收集类模板(MFC模板类)的头文件,倘若你在程序中用 //到了CArray, CObList等数据结构时,那么就得加载该文件。通常在MFC编程中, //为了使用集合、数组类,要在StdAfx.h中加入下面语句: #include ///////////////////////////////////////////////////////////////////////////// // CMulPackView view class IPGram; class EtherHead; class CMulPackView : public CListView { protected: CMulPackView(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CMulPackView) CImageList m_imageList; //CArray ipPacks; //CArray etherHeads; CArray pkt_headers; CArray pkt_datas; // Attributes public: int index; int totalmem;//收到的报文占用总字节数 int time;//流逝的秒数 int delta;//一秒内收到的字节数 //int tempmem; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMulPackView) public: virtual void OnInitialUpdate(); protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view //}}AFX_VIRTUAL // Implementation protected: virtual ~CMulPackView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CMulPackView) afx_msg void OnPacketReceive(const struct pcap_pkthdr *pkt_header, const u_char *pkt_data); afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnMessageTimer(); afx_msg void OnItemchanging(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MULPACKVIEW_H__C6003A1F_ED27_42B5_B1EE_7ED5FB9E5A66__INCLUDED_)