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.

77 lines
2.1 KiB

  1. // NewKeyInfoDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "KeyRing.h"
  5. #include "InfoDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CNewKeyInfoDlg dialog
  13. CNewKeyInfoDlg::CNewKeyInfoDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CNewKeyInfoDlg::IDD, pParent),
  15. m_fNewKeyInfo(TRUE)
  16. {
  17. //{{AFX_DATA_INIT(CNewKeyInfoDlg)
  18. m_szFilePart = _T("");
  19. m_szBase = _T("");
  20. //}}AFX_DATA_INIT
  21. }
  22. void CNewKeyInfoDlg::DoDataExchange(CDataExchange* pDX)
  23. {
  24. CDialog::DoDataExchange(pDX);
  25. //{{AFX_DATA_MAP(CNewKeyInfoDlg)
  26. DDX_Text(pDX, IDC_NEW_KEY_INFO_FILE_PART, m_szFilePart);
  27. DDX_Text(pDX, IDC_INFO_BASE, m_szBase);
  28. //}}AFX_DATA_MAP
  29. }
  30. BEGIN_MESSAGE_MAP(CNewKeyInfoDlg, CDialog)
  31. //{{AFX_MSG_MAP(CNewKeyInfoDlg)
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CNewKeyInfoDlg message handlers
  36. //----------------------------------------------------------------
  37. // override virtual oninitdialog
  38. BOOL CNewKeyInfoDlg::OnInitDialog( )
  39. {
  40. CString szTemp;
  41. // put the appropriate first string into the dialog
  42. if ( m_fNewKeyInfo )
  43. m_szBase.LoadString( IDS_NEW_KEY_INFO_BASE );
  44. else
  45. m_szBase.LoadString( IDS_RENEW_KEY_INFO_BASE );
  46. // build the file part of the info dialog
  47. m_szFilePart.LoadString( IDS_NEW_KEY_INFO_1 );
  48. m_szFilePart += m_szRequestFile;
  49. if ( m_fNewKeyInfo )
  50. szTemp.LoadString( IDS_NEW_KEY_INFO_2 );
  51. else
  52. szTemp.LoadString( IDS_RENEW_KEY_INFO_2 );
  53. m_szFilePart += szTemp;
  54. // call the base oninit
  55. CDialog::OnInitDialog();
  56. // return 0 to say we set the default item
  57. // return 1 to just select the default default item
  58. return 1;
  59. }
  60. //----------------------------------------------------------------