www.pudn.com > 多功能聊天程序.rar > AddFreind.cpp


// AddFreind.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "MainBord.h" 
#include "AddFreind.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// AddFreind dialog 
 
 
AddFreind::AddFreind(CWnd* pParent /*=NULL*/) 
	: CDialog(AddFreind::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(AddFreind) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void AddFreind::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(AddFreind) 
	DDX_Control(pDX, IDC_IPADDRESS, m_IPAddress); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(AddFreind, CDialog) 
	//{{AFX_MSG_MAP(AddFreind) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// AddFreind message handlers 
 
void AddFreind::OnOK()  
{ 
	// TODO: Add extra validation here 
	UpdateData(TRUE); 
	m_IPAddress.GetWindowText(ipstr); 
	CDialog::OnOK(); 
} 
 
BOOL AddFreind::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	//m_IPAddress.SetWindowText(ipstr); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}