www.pudn.com > chat-dialog.rar > SetConnect.cpp
// SetConnect.cpp : implementation file
//
#include "stdafx.h"
#include "Client1_2.h"
#include "SetConnect.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetConnect dialog
CSetConnect::CSetConnect(CWnd* pParent /*=NULL*/)
: CDialog(CSetConnect::IDD, pParent)
{
//{{AFX_DATA_INIT(CSetConnect)
m_sIP = _T("192.168.0.231");
m_nPort = 3721;
m_strID = _T("");
//}}AFX_DATA_INIT
}
void CSetConnect::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSetConnect)
DDX_Text(pDX, IDC_IP, m_sIP);
DDX_Text(pDX, IDC_PORT, m_nPort);
DDV_MinMaxUInt(pDX, m_nPort, 1000, 10000);
DDX_Text(pDX, IDC_ID, m_strID);
DDV_MaxChars(pDX, m_strID, 7);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSetConnect, CDialog)
//{{AFX_MSG_MAP(CSetConnect)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetConnect message handlers