📄 recordname.cpp
字号:
// RecordName.cpp : implementation file
//
#include "stdafx.h"
#include "testDlg.h"
#include "RecordName.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRecordName dialog
CRecordName::CRecordName(CWnd* pParent /*=NULL*/)
: CDialog(CRecordName::IDD, pParent)
{
//{{AFX_DATA_INIT(CRecordName)
m_recordName = _T("");
//}}AFX_DATA_INIT
}
void CRecordName::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CRecordName)
DDX_Control(pDX, IDOK, m_Ok);
DDX_Control(pDX, IDCANCEL, m_Cancel);
DDX_Text(pDX, IDC_EDIT1, m_recordName);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CRecordName, CDialog)
//{{AFX_MSG_MAP(CRecordName)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRecordName message handlers
void CRecordName::OnOK()
{
// TODO: Add extra validation here
UpdateData(true);
CDialog::OnOK();
}
void CRecordName::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
CString CRecordName::GetRecordName()
{
return m_recordName;
}
BOOL CRecordName::OnInitDialog()
{
CDialog::OnInitDialog();
GetDlgItem(IDC_EDIT1)->SetFocus();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -