www.pudn.com > chat-dialog.rar > DlgIpPort.cpp


// DlgIpPort.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Sever1_2.h" 
#include "DlgIpPort.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgIpPort dialog 
 
 
CDlgIpPort::CDlgIpPort(CWnd* pParent /*=NULL*/) 
	: CDialog(CDlgIpPort::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDlgIpPort) 
	m_strIP = _T("192.168.0.231"); 
	m_nPort = 3721; 
	m_ntotalNum = 5; 
	//}}AFX_DATA_INIT 
	m_bStart=TRUE; 
} 
 
 
void CDlgIpPort::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDlgIpPort) 
	DDX_Text(pDX, IDC_IP, m_strIP); 
	DDX_Text(pDX, IDC_PORT, m_nPort); 
	DDV_MinMaxUInt(pDX, m_nPort, 1000, 10000); 
	DDX_Text(pDX, IDC_CONTENT, m_ntotalNum); 
	DDV_MinMaxInt(pDX, m_ntotalNum, 1, 50); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDlgIpPort, CDialog) 
	//{{AFX_MSG_MAP(CDlgIpPort) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgIpPort message handlers 
 
void CDlgIpPort::OnCancel()  
{ 
	// TODO: Add extra cleanup here 
	m_bStart=false; 
	CDialog::OnCancel(); 
}