📄 passworddlg3.cpp
字号:
// PasswordDlg3.cpp : implementation file
//
#include "stdafx.h"
#include "ShaoYe.h"
#include "PasswordDlg3.h"
#include "ModelModifyDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPasswordDlg3 dialog
CPasswordDlg3::CPasswordDlg3(CWnd* pParent /*=NULL*/)
: CDialog(CPasswordDlg3::IDD, pParent)
{
//{{AFX_DATA_INIT(CPasswordDlg3)
m_password = _T("");
//}}AFX_DATA_INIT
}
void CPasswordDlg3::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPasswordDlg3)
DDX_Text(pDX, IDC_EDIT1, m_password);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPasswordDlg3, CDialog)
//{{AFX_MSG_MAP(CPasswordDlg3)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPasswordDlg3 message handlers
void CPasswordDlg3::OnOK()
{
// TODO: Add extra validation here
UpdateData();
CDialog::OnOK();
if(m_password=="shaoye")
{
CModelModifyDlg Dlg;
Dlg.DoModal();
}
else
{
MessageBox("密码错误!");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -