-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewMap.cpp
More file actions
49 lines (39 loc) · 1.16 KB
/
NewMap.cpp
File metadata and controls
49 lines (39 loc) · 1.16 KB
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
// NewMap.cpp : implementation file
//
#include "stdafx.h"
#include "AnMap.h"
#include "NewMap.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNewMap dialog
CNewMap::CNewMap(short sizeX, short sizeY, CWnd* pParent /*=NULL*/)
: CDialog(CNewMap::IDD, pParent)
{
//{{AFX_DATA_INIT(CNewMap)
m_sMapSizeX = sizeX;
m_sMapSizeY = sizeY;
m_iTerrain = 0;
//}}AFX_DATA_INIT
}
void CNewMap::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CNewMap)
DDX_Text(pDX, IDC_EDIT_MAPSIZEX, m_sMapSizeX);
DDV_MinMaxInt(pDX, m_sMapSizeX, 50, 752);
DDX_Text(pDX, IDC_EDIT_MAPSIZEY, m_sMapSizeY);
DDV_MinMaxInt(pDX, m_sMapSizeY, 50, 752);
DDX_Radio(pDX, IDC_RADIO_GRASS, m_iTerrain);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CNewMap, CDialog)
//{{AFX_MSG_MAP(CNewMap)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNewMap message handlers