InputPsw2.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // InputPsw2.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "LYFZSendMsg.h"
  5. #include "InputPsw2.h"
  6. #include "mysqldata.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // InputPsw2 dialog
  14. InputPsw2::InputPsw2(CWnd* pParent /*=NULL*/)
  15. : CDialog(InputPsw2::IDD, pParent)
  16. {
  17. //{{AFX_DATA_INIT(InputPsw2)
  18. m_psw = _T("");
  19. m_psw2="lijiaxxxlyfz";
  20. //}}AFX_DATA_INIT
  21. }
  22. void InputPsw2::DoDataExchange(CDataExchange* pDX)
  23. {
  24. CDialog::DoDataExchange(pDX);
  25. //{{AFX_DATA_MAP(InputPsw2)
  26. DDX_Text(pDX, IDC_EDIT1, m_psw);
  27. //}}AFX_DATA_MAP
  28. }
  29. BEGIN_MESSAGE_MAP(InputPsw2, CDialog)
  30. //{{AFX_MSG_MAP(InputPsw2)
  31. //}}AFX_MSG_MAP
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // InputPsw2 message handlers
  35. void InputPsw2::OnOK()
  36. {
  37. // TODO: Add extra validation here
  38. UpdateData();
  39. if(m_psw==m_psw2)
  40. CDialog::OnOK();
  41. }
  42. BOOL InputPsw2::OnInitDialog()
  43. {
  44. CDialog::OnInitDialog();
  45. // TODO: Add extra initialization here
  46. GetDlgItem(IDC_EDIT1)->SetFocus();
  47. return false; // return TRUE unless you set the focus to a control
  48. // EXCEPTION: OCX Property Pages should return FALSE
  49. }