editbookdlg.cpp

来自「适合MFC初学者学习」· C++ 代码 · 共 63 行

CPP
63
字号
// EditBookDlg.cpp : implementation file
//

#include "stdafx.h"
#include "LLL.h"
#include "EditBookDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEditBookDlg dialog


CEditBookDlg::CEditBookDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CEditBookDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CEditBookDlg)
	m_number = _T("");
	m_type = _T("");
	m_name = _T("");
	m_auther = _T("");
	m_editer = _T("");
	//}}AFX_DATA_INIT
}


void CEditBookDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CEditBookDlg)
	DDX_Text(pDX, IDC_EDIT1, m_number);
	DDX_Text(pDX, IDC_EDIT2, m_type);
	DDX_Text(pDX, IDC_EDIT3, m_name);
	DDX_Text(pDX, IDC_EDIT4, m_auther);
	DDX_Text(pDX, IDC_EDIT5, m_editer);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CEditBookDlg, CDialog)
	//{{AFX_MSG_MAP(CEditBookDlg)
	ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEditBookDlg message handlers

void CEditBookDlg::OnChangeEdit1() 
{
	// 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.
	
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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