vlanview.cpp

来自「非常好的测量网络流量及MIB浏览器编译-过!」· C++ 代码 · 共 74 行

CPP
74
字号
// VlanView.cpp : implementation file
//

#include "stdafx.h"
#include "NetMapDoc.h"
#include "NetMap.h"
#include "VlanView.h"
#include "Mainfrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CVlanView

IMPLEMENT_DYNCREATE(CVlanView, CFormView)

CVlanView::CVlanView()
	: CFormView(CVlanView::IDD)
{
	//{{AFX_DATA_INIT(CVlanView)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CVlanView::~CVlanView()
{

}

void CVlanView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CVlanView)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}
void CVlanView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();
	CMainFrame *pMain=(CMainFrame *)AfxGetApp()->m_pMainWnd;
	pMain->pVlanView=this;
//	CNetMapDoc *pDoc=(CNetMapDoc *)GetDocument();
//	MessageBox(pDoc->s);
}

BEGIN_MESSAGE_MAP(CVlanView, CFormView)
	//{{AFX_MSG_MAP(CVlanView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CVlanView diagnostics

#ifdef _DEBUG
void CVlanView::AssertValid() const
{
	CFormView::AssertValid();
}

void CVlanView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CVlanView message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?