www.pudn.com > SnifferPro.rar > SinPackView.h
#if !defined(AFX_SINPACKVIEW_H__D3B362C7_D419_4CAA_9D32_0F09E7E4F0C1__INCLUDED_) #define AFX_SINPACKVIEW_H__D3B362C7_D419_4CAA_9D32_0F09E7E4F0C1__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // SinPackView.h : header file // ///////////////////////////////////////////////////////////////////////////// // CSinPackView view #includeclass IPGram; class EtherHead; class TCPGram; class UDPGram; class ICMPGram; class ARPGram; class RARPGram; class Founder; class CSinPackView : public CTreeView { protected: CSinPackView(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CSinPackView) // Attributes public: //指向各种报文的指针 IPGram *ip; EtherHead *ether; TCPGram *tcp; UDPGram *udp; ICMPGram *icmp; ARPGram *arp; RARPGram *rarp; // Operations public: //选中一个字段后,确定其在报文终端位置和长度,传给CStcView,令其相应的字节高亮 //如:选中IP的Source Address,则通知CStcView将相应四字节高亮 Founder GetFounder(CString name); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSinPackView) public: virtual void OnInitialUpdate(); protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view //}}AFX_VIRTUAL // Implementation protected: virtual ~CSinPackView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CSinPackView) afx_msg void OnPacketSelect(const struct pcap_pkthdr *pkt_header, const u_char *pkt_data); afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnSelchanging(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_SINPACKVIEW_H__D3B362C7_D419_4CAA_9D32_0F09E7E4F0C1__INCLUDED_)