www.pudn.com > IPFlood.rar > SetupIcmpDlg.cpp


// SetupIcmpDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "IPFlood.h" 
#include "SetupIcmpDlg.h" 
#include "SetupDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetupIcmpDlg dialog 
 
 
CSetupIcmpDlg::CSetupIcmpDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CSetupIcmpDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CSetupIcmpDlg) 
	m_ICMPCode = 0; 
	m_ICMPType = 8; 
	//}}AFX_DATA_INIT 
} 
 
 
void CSetupIcmpDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CSetupIcmpDlg) 
	DDX_Text(pDX, IDC_ICMPCODE, m_ICMPCode); 
	DDV_MinMaxByte(pDX, m_ICMPCode, 0, 20); 
	DDX_Text(pDX, IDC_ICMPTYPE, m_ICMPType); 
	DDV_MinMaxByte(pDX, m_ICMPType, 0, 18); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CSetupIcmpDlg, CDialog) 
	//{{AFX_MSG_MAP(CSetupIcmpDlg) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetupIcmpDlg message handlers 
 
 
 
void CSetupIcmpDlg::OnCancel()  
{ 
	// TODO: Add extra cleanup here 
	m_ICMPCode = 0; 
	m_ICMPType = 8; 
	UpdateData(false); 
}