netsetdlg.cpp

来自「用c++ 开发的中国象棋」· C++ 代码 · 共 48 行

CPP
48
字号
// NetSetDlg.cpp : implementation file
//

#include "stdafx.h"
#include "chinesechess.h"
#include "NetSetDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CNetSetDlg dialog


CNetSetDlg::CNetSetDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CNetSetDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CNetSetDlg)
	m_Port = 0;
	m_strIPAddr = _T("");
	//}}AFX_DATA_INIT
}


void CNetSetDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNetSetDlg)
	DDX_Control(pDX, IDOK, m_Sure);
	DDX_Control(pDX, IDCANCEL, m_Cancle);
	DDX_Text(pDX, IDC_EDIT_PORT, m_Port);
	DDX_Text(pDX, IDC_EDIT_IPADDR, m_strIPAddr);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNetSetDlg, CDialog)
	//{{AFX_MSG_MAP(CNetSetDlg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNetSetDlg message handlers

⌨️ 快捷键说明

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