// TODO: Add your control notification handler code here
m_count++;
UpdateData(TRUE);
if((strcmp(m_Passwd,dw_Passwd))!=0 &&m_count<2)
{
MessageBox("密码不对,请再输入一遍");
CWnd* pWnd=GetDlgItem(IDC_INPUTPWD);
pWnd->SetWindowText("");
pWnd->SetFocus();
}
if((strcmp(m_Passwd,dw_Passwd))!=0&&m_count==2)
{
fail=TRUE;
CDialog::OnCancel();
}
if((strcmp(m_Passwd,dw_Passwd))==0)
CDialog::OnCancel();
}
void CInputPwd::OnCancel()
{
// TODO: Add extra cleanup here
fail=TRUE;
CDialog::OnCancel();
}
// TODO: Add your control notification handler code here
m_count++;
UpdateData(TRUE);
if((strcmp(m_Passwd,dw_Passwd))!=0 &&m_count<2)
{
MessageBox("密码不对,请再输入一遍");
CWnd* pWnd=GetDlgItem(IDC_INPUTPWD);
pWnd->SetWindowText("");
pWnd->SetFocus();
}
if((strcmp(m_Passwd,dw_Passwd))!=0&&m_count==2)
{
fail=TRUE;
CDialog::OnCancel();
}
if((strcmp(m_Passwd,dw_Passwd))==0)
CDialog::OnCancel();
}
void CInputPwd::OnCancel()
{
// TODO: Add extra cleanup here
fail=TRUE;
CDialog::OnCancel();
}
// TODO: Add your control notification handler code here
m_count++;
UpdateData(TRUE);
if((strcmp(m_Passwd,dw_Passwd))!=0 &&m_count<2)
{
MessageBox("密码不对,请再输入一遍");
CWnd* pWnd=GetDlgItem(IDC_INPUTPWD);
pWnd->SetWindowText("");
pWnd->SetFocus();
}
if((strcmp(m_Passwd,dw_Passwd))!=0&&m_count==2)
{
fail=TRUE;
CDialog::OnCancel();
}
if((strcmp(m_Passwd,dw_Passwd))==0)
CDialog::OnCancel();
}
void CInputPwd::OnCancel()
{
// TODO: Add extra cleanup here
fail=TRUE;
CDialog::OnCancel();
}