FileCopyDialog.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. ** Command & Conquer Renegade(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. // FileCopyDialog.cpp : implementation file
  19. //
  20. #include "stdafx.h"
  21. #include "W3DUpdate.h"
  22. #include "FileCopyDialog.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // FileCopyDialogClass dialog
  30. FileCopyDialogClass::FileCopyDialogClass(CWnd* pParent /*=NULL*/)
  31. : CDialog(FileCopyDialogClass::IDD, pParent)
  32. {
  33. //{{AFX_DATA_INIT(FileCopyDialogClass)
  34. // NOTE: the ClassWizard will add member initialization here
  35. //}}AFX_DATA_INIT
  36. }
  37. void FileCopyDialogClass::DoDataExchange(CDataExchange* pDX)
  38. {
  39. CDialog::DoDataExchange(pDX);
  40. //{{AFX_DATA_MAP(FileCopyDialogClass)
  41. DDX_Control(pDX, IDC_ANIMATE_CTRL, m_AnimateCtrl);
  42. //}}AFX_DATA_MAP
  43. }
  44. BEGIN_MESSAGE_MAP(FileCopyDialogClass, CDialog)
  45. //{{AFX_MSG_MAP(FileCopyDialogClass)
  46. //}}AFX_MSG_MAP
  47. END_MESSAGE_MAP()
  48. //////////////////////////////////////////////////////////////////////////////
  49. //
  50. // WindowProc
  51. //
  52. //////////////////////////////////////////////////////////////////////////////
  53. LRESULT
  54. FileCopyDialogClass::WindowProc
  55. (
  56. UINT message,
  57. WPARAM wParam,
  58. LPARAM lParam
  59. )
  60. {
  61. if (message == WM_USER + 101) {
  62. EndDialog (TRUE);
  63. }
  64. return CDialog::WindowProc(message, wParam, lParam);
  65. }
  66. //////////////////////////////////////////////////////////////////////////////
  67. //
  68. // OnInitDialog
  69. //
  70. //////////////////////////////////////////////////////////////////////////////
  71. BOOL
  72. FileCopyDialogClass::OnInitDialog (void)
  73. {
  74. CDialog::OnInitDialog();
  75. CString app_title;
  76. app_title.Format ("Application: %s", m_AppTitle);
  77. SetDlgItemText (IDC_CURRENT_APP, app_title);
  78. m_AnimateCtrl.Open (IDR_FILECOPY_AVI);
  79. return TRUE; // return TRUE unless you set the focus to a control
  80. // EXCEPTION: OCX Property Pages should return FALSE
  81. }