📄 hangepwform.cpp
字号:
//Change Password dialog. (C) 2003 PSMKorea
// hangePwForm.cpp : implementation file
//
#include "stdafx.h"
#include "PSMScrLk.h"
#include "hangePwForm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// ChangePwForm dialog
ChangePwForm::ChangePwForm(CWnd* pParent /*=NULL*/)
: CDialog(ChangePwForm::IDD, pParent)
{
//{{AFX_DATA_INIT(ChangePwForm)
m_vOldPW = _T("");
m_vNewPW2 = _T("");
m_vNewPW1 = _T("");
//}}AFX_DATA_INIT
}
void ChangePwForm::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(ChangePwForm)
DDX_Control(pDX, IDC_EDIT_OLD_PW, m_cOldPW);
DDX_Control(pDX, IDC_EDIT_NEW_PW2, m_cNewPW2);
DDX_Control(pDX, IDC_EDIT_NEW_PW1, m_cNewPW1);
DDX_Text(pDX, IDC_EDIT_OLD_PW, m_vOldPW);
DDV_MaxChars(pDX, m_vOldPW, 20);
DDX_Text(pDX, IDC_EDIT_NEW_PW2, m_vNewPW2);
DDV_MaxChars(pDX, m_vNewPW2, 20);
DDX_Text(pDX, IDC_EDIT_NEW_PW1, m_vNewPW1);
DDV_MaxChars(pDX, m_vNewPW1, 20);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(ChangePwForm, CDialog)
//{{AFX_MSG_MAP(ChangePwForm)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// ChangePwForm message handlers
void ChangePwForm::OnCancel()
{
// TODO: Add extra cleanup here
bOK=FALSE;
CDialog::OnCancel();
}
void ChangePwForm::OnOK()
{
// TODO: Add extra validation here
bOK=TRUE;
UpdateData(TRUE);
CDialog::OnOK();
}
void ChangePwForm::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialog::OnShowWindow(bShow, nStatus);
if (iFocusPos==0) {
m_cOldPW.SetFocus();
}else if (iFocusPos==1) {
m_cNewPW1.SetFocus();
}else if (iFocusPos==2) {
m_cNewPW2.SetFocus();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -