GamePageTeam.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /////////////////////////////////////////////////////////////////////////////
  2. // GamePageTeam.cpp : implementation file
  3. //
  4. #include "stdafx.h"
  5. #include "AllSrvUI.h"
  6. #include "GamePageTeam.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CGamePageTeam property page
  14. IMPLEMENT_DYNAMIC(CGamePageTeam, CPropertyPage)
  15. /////////////////////////////////////////////////////////////////////////////
  16. // Message Map
  17. BEGIN_MESSAGE_MAP(CGamePageTeam, CPropertyPage)
  18. //{{AFX_MSG_MAP(CGamePageTeam)
  19. //}}AFX_MSG_MAP
  20. END_MESSAGE_MAP()
  21. /////////////////////////////////////////////////////////////////////////////
  22. // Construction / Destruction
  23. CGamePageTeam::CGamePageTeam() :
  24. CPropertyPage(CGamePageTeam::IDD)
  25. {
  26. //{{AFX_DATA_INIT(CGamePageTeam)
  27. m_eTeamCount = -1;
  28. m_eMaxTeamInbalance = -1;
  29. m_eMinTeamPlayers = -1;
  30. m_eMaxTeamPlayers = -1;
  31. m_eSkillLevels = -1;
  32. m_eTeamLives = -1;
  33. m_eStartingMoney = -1;
  34. m_eTotalMoney = -1;
  35. //}}AFX_DATA_INIT
  36. }
  37. /////////////////////////////////////////////////////////////////////////////
  38. // Attributes
  39. /////////////////////////////////////////////////////////////////////////////
  40. // Overrides
  41. void CGamePageTeam::OnOK()
  42. {
  43. // Perform default processing
  44. CPropertyPage::OnOK();
  45. }
  46. BOOL CGamePageTeam::OnSetActive()
  47. {
  48. // Perform default processing
  49. BOOL bResult = CPropertyPage::OnSetActive();
  50. // Return the result of the default processing
  51. return bResult;
  52. }
  53. void CGamePageTeam::DoDataExchange(CDataExchange* pDX)
  54. {
  55. // Perform default processing
  56. CPropertyPage::DoDataExchange(pDX);
  57. //{{AFX_DATA_MAP(CGamePageTeam)
  58. DDX_CBIndex(pDX, IDC_TEAM_COUNT, m_eTeamCount);
  59. DDX_CBIndex(pDX, IDC_MAX_TEAM_INBALANCE, m_eMaxTeamInbalance);
  60. DDX_CBIndex(pDX, IDC_MIN_TEAM_PLAYERS, m_eMinTeamPlayers);
  61. DDX_CBIndex(pDX, IDC_MAX_TEAM_PLAYERS, m_eMaxTeamPlayers);
  62. DDX_CBIndex(pDX, IDC_SKILL_LEVEL, m_eSkillLevels);
  63. DDX_CBIndex(pDX, IDC_TEAM_LIVES, m_eTeamLives);
  64. DDX_CBIndex(pDX, IDC_STARTING_MONEY, m_eStartingMoney);
  65. DDX_CBIndex(pDX, IDC_TOTAL_MONEY, m_eTotalMoney);
  66. //}}AFX_DATA_MAP
  67. }
  68. /////////////////////////////////////////////////////////////////////////////
  69. // Implementation
  70. /////////////////////////////////////////////////////////////////////////////
  71. // Message Handlers
  72. BOOL CGamePageTeam::OnInitDialog()
  73. {
  74. // Perform default processing
  75. CPropertyPage::OnInitDialog();
  76. // Return true to set the focus to the first tabstop control
  77. return true;
  78. }