VerifyTextDlg.cpp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. ** Command & Conquer Generals Zero Hour(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // VerifyTextDlg.cpp : implementation file
  19. //
  20. #include "stdafx.h"
  21. #include "Babylon.h"
  22. #include "VerifyTextDlg.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CVerifyTextDlg dialog
  30. CVerifyTextDlg::CVerifyTextDlg( char *trans, char *orig, CWnd* pParent /*=NULL*/)
  31. : CDialog(CVerifyTextDlg::IDD, pParent)
  32. {
  33. //{{AFX_DATA_INIT(CVerifyTextDlg)
  34. // NOTE: the ClassWizard will add member initialization here
  35. //}}AFX_DATA_INIT
  36. m_trans = trans;
  37. m_orig = orig;
  38. }
  39. void CVerifyTextDlg::DoDataExchange(CDataExchange* pDX)
  40. {
  41. CDialog::DoDataExchange(pDX);
  42. //{{AFX_DATA_MAP(CVerifyTextDlg)
  43. // NOTE: the ClassWizard will add DDX and DDV calls here
  44. //}}AFX_DATA_MAP
  45. }
  46. BEGIN_MESSAGE_MAP(CVerifyTextDlg, CDialog)
  47. //{{AFX_MSG_MAP(CVerifyTextDlg)
  48. ON_BN_CLICKED(IDC_NOMATCH, OnNomatch)
  49. ON_BN_CLICKED(IDC_MATCH, OnMatch)
  50. //}}AFX_MSG_MAP
  51. END_MESSAGE_MAP()
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CVerifyTextDlg message handlers
  54. void CVerifyTextDlg::OnNomatch()
  55. {
  56. EndDialog ( IDNO );
  57. }
  58. void CVerifyTextDlg::OnMatch()
  59. {
  60. EndDialog ( IDYES );
  61. }
  62. BOOL CVerifyTextDlg::OnInitDialog()
  63. {
  64. CDialog::OnInitDialog();
  65. SetDlgItemText ( IDC_TRANS, m_trans );
  66. SetDlgItemText ( IDC_ORIG, m_orig );
  67. return TRUE; // return TRUE unless you set the focus to a control
  68. // EXCEPTION: OCX Property Pages should return FALSE
  69. }