accountno1.cpp
来自「一个模仿ATM提款机的MFC程序」· C++ 代码 · 共 65 行
CPP
65 行
// Accountno1.cpp : implementation file
//
#include "stdafx.h"
#include "ATM.h"
#include "Accountno1.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAccountno1 dialog
CAccountno1::CAccountno1(CWnd* pParent /*=NULL*/)
: CDialog(CAccountno1::IDD, pParent)
{
//{{AFX_DATA_INIT(CAccountno1)
m_accountno1 = _T("");
//}}AFX_DATA_INIT
}
void CAccountno1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAccountno1)
DDX_Control(pDX, IDC_ACCCOUNTNO, m_accountno1edit);
DDX_Text(pDX, IDC_ACCCOUNTNO, m_accountno1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAccountno1, CDialog)
//{{AFX_MSG_MAP(CAccountno1)
ON_BN_CLICKED(IDC_CORRECT, OnCorrect)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAccountno1 message handlers
void CAccountno1::OnCorrect()
{
// TODO: Add your control notification handler code here
m_accountno1edit.SetWindowText("");
}
void CAccountno1::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
void CAccountno1::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?