12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #include "stdafx.h"
- #include "LYFZSendMsg.h"
- #include "InputPsw2.h"
- #include "mysqldata.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- InputPsw2::InputPsw2(CWnd* pParent )
- : CDialog(InputPsw2::IDD, pParent)
- {
-
- m_psw = _T("");
- m_psw2="lijiaxxxlyfz";
-
- }
- void InputPsw2::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
- DDX_Text(pDX, IDC_EDIT1, m_psw);
-
- }
- BEGIN_MESSAGE_MAP(InputPsw2, CDialog)
-
-
- END_MESSAGE_MAP()
- void InputPsw2::OnOK()
- {
-
- UpdateData();
- if(m_psw==m_psw2)
- CDialog::OnOK();
- }
- BOOL InputPsw2::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- GetDlgItem(IDC_EDIT1)->SetFocus();
-
- return false;
-
- }
|