setserverportdlg.cpp

来自「QQ示例源码」· C++ 代码 · 共 45 行

CPP
45
字号
// SetServerPortDlg.cpp : implementation file
//

#include "stdafx.h"
#include "CChatServer.h"
#include "SetServerPortDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetServerPortDlg dialog


CSetServerPortDlg::CSetServerPortDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSetServerPortDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetServerPortDlg)
	m_iServerPort = 1080;
	//}}AFX_DATA_INIT
}


void CSetServerPortDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetServerPortDlg)
	DDX_Text(pDX, IDC_SERVERPORT, m_iServerPort);
	DDV_MinMaxInt(pDX, m_iServerPort, 0, 65536);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSetServerPortDlg message handlers

⌨️ 快捷键说明

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