NewMapCreateDlg.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  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. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. // NewMapCreateDlg.cpp: Implementierungsdatei
  17. //
  18. #include "stdafx.h"
  19. #include "finalsun.h"
  20. #include "NewMapCreateDlg.h"
  21. #ifdef _DEBUG
  22. #define new DEBUG_NEW
  23. #undef THIS_FILE
  24. static char THIS_FILE[] = __FILE__;
  25. #endif
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Dialogfeld CNewMapCreateDlg
  28. CNewMapCreateDlg::CNewMapCreateDlg(CWnd* pParent /*=NULL*/)
  29. : CDialog(CNewMapCreateDlg::IDD, pParent)
  30. {
  31. //{{AFX_DATA_INIT(CNewMapCreateDlg)
  32. m_CreateType = -1;
  33. m_AITriggers = TRUE;
  34. //}}AFX_DATA_INIT
  35. }
  36. void CNewMapCreateDlg::DoDataExchange(CDataExchange* pDX)
  37. {
  38. CDialog::DoDataExchange(pDX);
  39. //{{AFX_DATA_MAP(CNewMapCreateDlg)
  40. DDX_Radio(pDX, IDC_CREATE, m_CreateType);
  41. DDX_Check(pDX, IDC_AITRIGGERS, m_AITriggers);
  42. //}}AFX_DATA_MAP
  43. }
  44. BEGIN_MESSAGE_MAP(CNewMapCreateDlg, CDialog)
  45. //{{AFX_MSG_MAP(CNewMapCreateDlg)
  46. //}}AFX_MSG_MAP
  47. END_MESSAGE_MAP()
  48. /////////////////////////////////////////////////////////////////////////////
  49. // Behandlungsroutinen für Nachrichten CNewMapCreateDlg
  50. BOOL CNewMapCreateDlg::OnInitDialog()
  51. {
  52. CDialog::OnInitDialog();
  53. m_CreateType=0;
  54. UpdateData(FALSE);
  55. return TRUE; // return TRUE unless you set the focus to a control
  56. // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
  57. }