GetPacketView.cpp
资源名称:ntpacket.zip [点击查看]
上传用户:qxsjcl
上传日期:2007-01-08
资源大小:263k
文件大小:3k
源码类别:
网络截获/分析
开发平台:
Visual C++
- // GetPacketView.cpp : implementation of the CGetPacketView class
- //
- #include "stdafx.h"
- #include "GetPacket.h"
- #include "GetPacketDoc.h"
- #include "GetPacketView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CGetPacketView
- IMPLEMENT_DYNCREATE(CGetPacketView, CView)
- BEGIN_MESSAGE_MAP(CGetPacketView, CView)
- //{{AFX_MSG_MAP(CGetPacketView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CGetPacketView construction/destruction
- CGetPacketView::CGetPacketView()
- {
- // TODO: add construction code here
- }
- CGetPacketView::~CGetPacketView()
- {
- }
- BOOL CGetPacketView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CGetPacketView drawing
- void CGetPacketView::OnDraw(CDC* pDC)
- {
- CGetPacketDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CGetPacketView printing
- BOOL CGetPacketView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void CGetPacketView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void CGetPacketView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- /////////////////////////////////////////////////////////////////////////////
- // CGetPacketView diagnostics
- #ifdef _DEBUG
- void CGetPacketView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CGetPacketView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CGetPacketDoc* CGetPacketView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CGetPacketDoc)));
- return (CGetPacketDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CGetPacketView message handlers