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

📄 rwrite.cpp

📁 人事管理系统
💻 CPP
字号:
// RWrite.cpp : implementation file
//

#include "stdafx.h"
#include "system.h"
#include "RWrite.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRWrite dialog


CRWrite::CRWrite(CWnd* pParent /*=NULL*/)
	: CDialog(CRWrite::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRWrite)
	m_name = _T("");
	m_birth = _T("");
	//}}AFX_DATA_INIT
	changename=false;
}


void CRWrite::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRWrite)
	DDX_Text(pDX, IDC_EDIT1, m_name);
	DDX_Text(pDX, IDC_EDIT2, m_birth);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRWrite, CDialog)
	//{{AFX_MSG_MAP(CRWrite)
	ON_EN_CHANGE(IDC_EDIT1, OnChangename)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRWrite message handlers

void CRWrite::OnChangename() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	changename=true;
	// TODO: Add your control notification handler code here
	
}

void CRWrite::OnOK() 
{
	// TODO: Add extra validation here
	if(!changename)
		MessageBox("请输入要修改的档案的姓名",NULL,MB_ICONERROR);
	else
		CDialog::OnOK();
}

⌨️ 快捷键说明

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