Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  1. // CnfrmPsD.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "logui.h"
  5. #include "CnfrmPsD.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CConfirmPassDlg dialog
  13. CConfirmPassDlg::CConfirmPassDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CConfirmPassDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CConfirmPassDlg)
  17. m_sz_password_new = _T("");
  18. //}}AFX_DATA_INIT
  19. }
  20. void CConfirmPassDlg::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(CConfirmPassDlg)
  24. DDX_Text(pDX, IDC_ODBC_CONFIRM_PASSWORD, m_sz_password_new);
  25. //}}AFX_DATA_MAP
  26. }
  27. BEGIN_MESSAGE_MAP(CConfirmPassDlg, CDialog)
  28. //{{AFX_MSG_MAP(CConfirmPassDlg)
  29. //}}AFX_MSG_MAP
  30. END_MESSAGE_MAP()
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CConfirmPassDlg message handlers
  33. void CConfirmPassDlg::OnOK()
  34. {
  35. UpdateData( TRUE );
  36. // confirm it
  37. if ( m_sz_password_new != m_szOrigPass )
  38. {
  39. AfxMessageBox( IDS_PASS_CONFIRM_FAIL );
  40. return;
  41. }
  42. CDialog::OnOK();
  43. }