ProceedDlg.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. ** Command & Conquer Generals(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. // ProceedDlg.cpp : implementation file
  19. //
  20. #include "stdafx.h"
  21. #include "noxstring.h"
  22. #include "ProceedDlg.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // ProceedDlg dialog
  30. ProceedDlg::ProceedDlg(const char *nmessage, CWnd* pParent /*=NULL*/)
  31. : CDialog(ProceedDlg::IDD, pParent)
  32. {
  33. //{{AFX_DATA_INIT(ProceedDlg)
  34. // NOTE: the ClassWizard will add member initialization here
  35. //}}AFX_DATA_INIT
  36. message = nmessage;
  37. }
  38. void ProceedDlg::DoDataExchange(CDataExchange* pDX)
  39. {
  40. CDialog::DoDataExchange(pDX);
  41. //{{AFX_DATA_MAP(ProceedDlg)
  42. // NOTE: the ClassWizard will add DDX and DDV calls here
  43. //}}AFX_DATA_MAP
  44. }
  45. BEGIN_MESSAGE_MAP(ProceedDlg, CDialog)
  46. //{{AFX_MSG_MAP(ProceedDlg)
  47. ON_BN_CLICKED(IDC_YES, OnYes)
  48. ON_BN_CLICKED(IDC_ALWAYS, OnAlways)
  49. ON_BN_CLICKED(IDC_NO, OnNo)
  50. ON_WM_CLOSE()
  51. ON_BN_CLICKED(IDC_BUTTON_NO, OnNo)
  52. //}}AFX_MSG_MAP
  53. END_MESSAGE_MAP()
  54. /////////////////////////////////////////////////////////////////////////////
  55. // ProceedDlg message handlers
  56. void ProceedDlg::OnYes()
  57. {
  58. // TODO: Add your control notification handler code here
  59. EndDialog ( IDYES );
  60. }
  61. void ProceedDlg::OnAlways()
  62. {
  63. // TODO: Add your control notification handler code here
  64. EndDialog ( IDALWAYS );
  65. }
  66. void ProceedDlg::OnNo()
  67. {
  68. // TODO: Add your control notification handler code here
  69. EndDialog ( IDNO );
  70. }
  71. void ProceedDlg::OnClose()
  72. {
  73. // TODO: Add your message handler code here and/or call default
  74. EndDialog ( IDNO );
  75. CDialog::OnClose();
  76. }
  77. BOOL ProceedDlg::OnInitDialog()
  78. {
  79. CDialog::OnInitDialog();
  80. SetDlgItemText ( IDC_MESSAGE, message );
  81. return TRUE; // return TRUE unless you set the focus to a control
  82. // EXCEPTION: OCX Property Pages should return FALSE
  83. }