📄 passworddialog.cpp
字号:
// PasswordDialog.cpp : implementation file
//
#include "stdafx.h"
#include "dialog_1.h"
#include "PasswordDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPasswordDialog dialog
CPasswordDialog::CPasswordDialog(CWnd* pParent /*=NULL*/)
: CDialog(CPasswordDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CPasswordDialog)
m_Password = _T("");
//}}AFX_DATA_INIT
}
void CPasswordDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPasswordDialog)
DDX_Text(pDX, IDC_PASSWORD_EDIT, m_Password);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPasswordDialog, CDialog)
//{{AFX_MSG_MAP(CPasswordDialog)
ON_EN_CHANGE(IDC_PASSWORD_EDIT, OnChangePasswordEdit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPasswordDialog message handlers
void CPasswordDialog::OnChangePasswordEdit()
{
// 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
//将控件中的数据传递给变量m_Password,并自动进行数据校验
UpdateData(TRUE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -