#include "stdafx.h"
#include "AllSrvUI.h"
#include "GamePageTeam.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNAMIC(CGamePageTeam, CPropertyPage)
BEGIN_MESSAGE_MAP(CGamePageTeam, CPropertyPage)
END_MESSAGE_MAP()
CGamePageTeam::CGamePageTeam() :
CPropertyPage(CGamePageTeam::IDD)
{
m_eTeamCount = -1;
m_eMaxTeamInbalance = -1;
m_eMinTeamPlayers = -1;
m_eMaxTeamPlayers = -1;
m_eSkillLevels = -1;
m_eTeamLives = -1;
m_eStartingMoney = -1;
m_eTotalMoney = -1;
}
void CGamePageTeam::OnOK()
{
CPropertyPage::OnOK();
}
BOOL CGamePageTeam::OnSetActive()
{
BOOL bResult = CPropertyPage::OnSetActive();
return bResult;
}
void CGamePageTeam::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
DDX_CBIndex(pDX, IDC_TEAM_COUNT, m_eTeamCount);
DDX_CBIndex(pDX, IDC_MAX_TEAM_INBALANCE, m_eMaxTeamInbalance);
DDX_CBIndex(pDX, IDC_MIN_TEAM_PLAYERS, m_eMinTeamPlayers);
DDX_CBIndex(pDX, IDC_MAX_TEAM_PLAYERS, m_eMaxTeamPlayers);
DDX_CBIndex(pDX, IDC_SKILL_LEVEL, m_eSkillLevels);
DDX_CBIndex(pDX, IDC_TEAM_LIVES, m_eTeamLives);
DDX_CBIndex(pDX, IDC_STARTING_MONEY, m_eStartingMoney);
DDX_CBIndex(pDX, IDC_TOTAL_MONEY, m_eTotalMoney);
}
BOOL CGamePageTeam::OnInitDialog()
{
CPropertyPage::OnInitDialog();
return true;
}