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

📄 landetectview.cpp

📁 ARP test mode. According to the idea we design the arithmetic for the key part, first the system sen
💻 CPP
字号:
// LANDetectView.cpp : implementation of the CLANDetectView class
//

#include "stdafx.h"
#include "LANDetect.h"
#include "EditPwd.h"
#include "LANDetectSet.h"
#include "LANDetectDoc.h"
#include "LANDetectView.h"
#include "AddUser.h"
#include "Detect.h"
#include "DlgAdp.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLANDetectView

IMPLEMENT_DYNCREATE(CLANDetectView, CRecordView)

BEGIN_MESSAGE_MAP(CLANDetectView, CRecordView)
	//{{AFX_MSG_MAP(CLANDetectView)
	ON_COMMAND(ID_OPERATE_GRANT, OnOperateGrant)
	ON_COMMAND(ID_OPERATE_EDITPWD, OnOperateEditpwd)
	ON_COMMAND(ID_DETECT_ADP, OnDetectAdp)
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CRecordView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CRecordView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CRecordView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLANDetectView construction/destruction

CLANDetectView::CLANDetectView()
	: CRecordView(CLANDetectView::IDD)
{
	//{{AFX_DATA_INIT(CLANDetectView)
	m_pSet = NULL;
	//}}AFX_DATA_INIT
	// TODO: add construction code here

}

CLANDetectView::~CLANDetectView()
{
}

void CLANDetectView::DoDataExchange(CDataExchange* pDX)
{
	CRecordView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLANDetectView)
	//}}AFX_DATA_MAP
}

BOOL CLANDetectView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CRecordView::PreCreateWindow(cs);
}

void CLANDetectView::OnInitialUpdate()
{
	m_pSet = &GetDocument()->m_lANDetectSet;
	CRecordView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();
}

/////////////////////////////////////////////////////////////////////////////
// CLANDetectView printing

BOOL CLANDetectView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CLANDetectView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CLANDetectView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CLANDetectView diagnostics

#ifdef _DEBUG
void CLANDetectView::AssertValid() const
{
	CRecordView::AssertValid();
}

void CLANDetectView::Dump(CDumpContext& dc) const
{
	CRecordView::Dump(dc);
}

CLANDetectDoc* CLANDetectView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CLANDetectDoc)));
	return (CLANDetectDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CLANDetectView database support
CRecordset* CLANDetectView::OnGetRecordset()
{
	return m_pSet;
}


/////////////////////////////////////////////////////////////////////////////
// CLANDetectView message handlers

void CLANDetectView::OnOperateGrant() 
{

	CAddUser dlg;
	dlg.DoModal();
}

void CLANDetectView::OnOperateEditpwd() 
{

	CEditPwd dlg;
	dlg.DoModal();
}
void CLANDetectView::OnDetectAdp() 
{

	CDlgAdp dlg;
	dlg.DoModal();
}

⌨️ 快捷键说明

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