⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netmapdoc.cpp

📁 非常好的测量网络流量及MIB浏览器编译-过!
💻 CPP
字号:
// NetMapDoc.cpp : implementation of the CNetMapDoc class
//

#include "stdafx.h"
#include "NetMap.h"
#include "Input.h"
#include "NetMapDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNetMapDoc

IMPLEMENT_DYNCREATE(CNetMapDoc, CDocument)

BEGIN_MESSAGE_MAP(CNetMapDoc, CDocument)
	//{{AFX_MSG_MAP(CNetMapDoc)
	ON_COMMAND(ID_CONFIG, OnConfig)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNetMapDoc construction/destruction

CNetMapDoc::CNetMapDoc()
{
	// TODO: add one-time construction code here
}

CNetMapDoc::~CNetMapDoc()
{
}

BOOL CNetMapDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CNetMapDoc serialization

void CNetMapDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CNetMapDoc diagnostics

#ifdef _DEBUG
void CNetMapDoc::AssertValid() const
{
	CDocument::AssertValid();
}

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

/////////////////////////////////////////////////////////////////////////////
// CNetMapDoc commands

void CNetMapDoc::OnConfig() 
{
CInput input;
if(input.DoModal()==IDOK)
{
//	CString str;
ip=input.m_ip;
community=input.m_community;	
}
}

⌨️ 快捷键说明

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