IpMonitorView.h
上传用户:ykzxjx
上传日期:2022-04-03
资源大小:1175k
文件大小:3k
开发平台:

Visual C++

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright 1999 - 2000 Mark Roddy
  4. // All Rights Reserved
  5. //
  6. // Hollis Technology Solutions
  7. // 94 Dow Road
  8. // Hollis, NH 03049
  9. // info@hollistech.com
  10. //
  11. // Synopsis: 
  12. // 
  13. //
  14. // Version Information:
  15. //
  16. // $Header: /iphook/usr/IpMonitor/IpMonitorView.h 2     1/27/00 10:35p Markr $ 
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. // IpMonitorView.h : interface of the CIpMonitorView class
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #if !defined(AFX_IPMONITORVIEW_H__A9C4641A_3D88_4929_BB58_AEC265D88686__INCLUDED_)
  23. #define AFX_IPMONITORVIEW_H__A9C4641A_3D88_4929_BB58_AEC265D88686__INCLUDED_
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif // _MSC_VER > 1000
  27. class CIpMonitorView : public CListView
  28. {
  29. protected: // create from serialization only
  30. CIpMonitorView();
  31. DECLARE_DYNCREATE(CIpMonitorView)
  32. // Attributes
  33. public:
  34. CIpMonitorDoc* GetDocument();
  35. // Operations
  36. public:
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CIpMonitorView)
  40. public:
  41. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  42. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  43. virtual void OnInitialUpdate();
  44. protected:
  45. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  46. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  47. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  48. virtual LRESULT OnBufferMessage(WPARAM wParam, LPARAM lParam);
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. public:
  52. virtual void reInitView();
  53. virtual ~CIpMonitorView();
  54. #ifdef _DEBUG
  55. virtual void AssertValid() const;
  56. virtual void Dump(CDumpContext& dc) const;
  57. #endif
  58. protected:
  59. void displayContents(IPHOOK_DATA * data);
  60. // Generated message map functions
  61. protected:
  62. //{{AFX_MSG(CIpMonitorView)
  63. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  64. afx_msg void OnDocClear();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. #ifndef _DEBUG  // debug version in IpMonitorView.cpp
  69. inline CIpMonitorDoc* CIpMonitorView::GetDocument()
  70.    { return (CIpMonitorDoc*)m_pDocument; }
  71. #endif
  72. /////////////////////////////////////////////////////////////////////////////
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_IPMONITORVIEW_H__A9C4641A_3D88_4929_BB58_AEC265D88686__INCLUDED_)
  76. ///////////////////////////////////////////////////////////////////////////////
  77. // 
  78. // Change History Log
  79. //
  80. // $Log: /iphook/usr/IpMonitor/IpMonitorView.h $
  81. // 
  82. // 2     1/27/00 10:35p Markr
  83. // Prepare to release!
  84. //
  85. ///////////////////////////////////////////////////////////////////////////////