Modify.cpp
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:1k
- // Modify.cpp : implementation file
- //
- #include "stdafx.h"
- #include "NetMap.h"
- #include "Modify.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CModify dialog
- CModify::CModify(CWnd* pParent /*=NULL*/)
- : CDialog(CModify::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CModify)
- m_RemoteIp = _T("");
- m_RemotePort = _T("");
- m_LocalIp = _T("");
- m_LocalPort = _T("");
- m_router = FALSE;
- //}}AFX_DATA_INIT
- add=false;
- }
- void CModify::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CModify)
- DDX_Text(pDX, IDC_EDIT1, m_RemoteIp);
- DDX_Text(pDX, IDC_EDIT2, m_RemotePort);
- DDX_Text(pDX, IDC_EDIT3, m_LocalIp);
- DDX_Text(pDX, IDC_EDIT4, m_LocalPort);
- DDX_Check(pDX, IDC_CHECK1, m_router);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CModify, CDialog)
- //{{AFX_MSG_MAP(CModify)
- ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
- ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CModify message handlers
- void CModify::OnButton1()
- {
- add=true;
- }
- void CModify::OnButton2()
- {
- add=false;
- }