-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPropPlay.cpp
53 lines (43 loc) · 1.23 KB
/
PropPlay.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// PropPlay.cpp : implementation file
//
#include "stdafx.h"
#include "bj.h"
#include "PropPlay.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPropPlay property page
IMPLEMENT_DYNCREATE(CPropPlay, CPropertyPage)
CPropPlay::CPropPlay() : CPropertyPage(CPropPlay::IDD)
{
//{{AFX_DATA_INIT(CPropPlay)
m_nNumPlayers = 5;
m_nPlaySpeed = 2;
m_nPenetration = 80;
//}}AFX_DATA_INIT
}
CPropPlay::~CPropPlay()
{
}
void CPropPlay::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPropPlay)
DDX_Text(pDX, IDC_EDIT_NUM_PLAYERS, m_nNumPlayers);
DDV_MinMaxInt(pDX, m_nNumPlayers, 1, 5);
DDX_Text(pDX, IDC_EDIT_PLAY_SPEED, m_nPlaySpeed);
DDV_MinMaxInt(pDX, m_nPlaySpeed, 1, 10);
DDX_Text(pDX, IDC_EDIT_PENETRATION, m_nPenetration);
DDV_MinMaxInt(pDX, m_nPenetration, 50, 100);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPropPlay, CPropertyPage)
//{{AFX_MSG_MAP(CPropPlay)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPropPlay message handlers