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.

58 lines
1.3 KiB

  1. // DConfirmPassDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "KeyRing.h"
  5. #include "PassDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // DConfirmPassDlg dialog
  13. CConfirmPassDlg::CConfirmPassDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CConfirmPassDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CConfirmPassDlg)
  17. m_szPassword = _T("");
  18. //}}AFX_DATA_INIT
  19. }
  20. void CConfirmPassDlg::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(DConfirmPassDlg)
  24. DDX_Text(pDX, IDC_CONFIRM_PASSWORD, m_szPassword);
  25. //}}AFX_DATA_MAP
  26. }
  27. BEGIN_MESSAGE_MAP(CConfirmPassDlg, CDialog)
  28. //{{AFX_MSG_MAP(CConfirmPassDlg)
  29. // NOTE: the ClassWizard will add message map macros here
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CConfirmPassDlg message handlers
  34. //----------------------------------------------------------------
  35. // override virtual oninitdialog
  36. BOOL CConfirmPassDlg::OnInitDialog( )
  37. {
  38. // call the base oninit
  39. CDialog::OnInitDialog();
  40. // set the focus to the edit box
  41. GotoDlgCtrl(GetDlgItem(IDC_CONFIRM_PASSWORD));
  42. // we start with no password, so diable the ok window
  43. // m_btnOK.EnableWindow( FALSE );
  44. return 1;
  45. }