⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userinfordlg.cpp

📁 用Visual C++实现的网络聊天室
💻 CPP
字号:
// UserInforDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Client.h"
#include "UserInforDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CUserInforDlg dialog


CUserInforDlg::CUserInforDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CUserInforDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CUserInforDlg)
	m_userName = _T("");
	m_userCopy = _T("");
	//}}AFX_DATA_INIT
}


void CUserInforDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CUserInforDlg)
	DDX_Control(pDX, IDC_EDIT_NAME, m_conUserCopy);
	DDX_Text(pDX, IDC_EDIT_NAME, m_userName);
	DDX_Text(pDX, IDC_USERCOPY, m_userCopy);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CUserInforDlg, CDialog)
	//{{AFX_MSG_MAP(CUserInforDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CUserInforDlg message handlers

void CUserInforDlg::OnOK() 
{
	    if(AfxMessageBox("是否确定更改消息?",MB_YESNO)==IDYES)
		{ 
	    	UpdateData(TRUE);
		}
		else
		{
	    	UpdateData(FALSE);
		}
    CDialog::OnOK();

}

⌨️ 快捷键说明

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