InputPsw.cpp 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // InputPsw.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ylgl.h"
  5. #include "InputPsw.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // InputPsw dialogdialog
  13. InputPsw::InputPsw(CWnd* pParent /*=NULL*/)
  14. : CDialog(InputPsw::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(InputPsw)
  17. m_psw = _T("");
  18. //}}AFX_DATA_INIT
  19. }
  20. void InputPsw::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(InputPsw)
  24. DDX_Text(pDX, IDC_EDIT1, m_psw);
  25. //}}AFX_DATA_MAP
  26. }
  27. BEGIN_MESSAGE_MAP(InputPsw, CDialog)
  28. //{{AFX_MSG_MAP(InputPsw)
  29. //}}AFX_MSG_MAP
  30. END_MESSAGE_MAP()
  31. /////////////////////////////////////////////////////////////////////////////
  32. // InputPsw message handlers
  33. void InputPsw::OnOK()
  34. {
  35. // TODO: Add extra validation here
  36. UpdateData();
  37. if(m_psw=="huangfei")
  38. CDialog::OnOK();
  39. }