AddFreind.cpp
资源名称:多功能聊天程序.rar [点击查看]
上传用户:onsales
上传日期:2010-01-31
资源大小:224k
文件大小:1k
源码类别:
网络编程
开发平台:
Visual C++
- // 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
- }