-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewmapdg.cpp
59 lines (46 loc) · 1.3 KB
/
newmapdg.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
54
55
56
57
58
59
// newmapdg.cpp : implementation file
//
#include "stdafx.h"
#include "President.h"
#include "newmapdg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNewMapDlg dialog
CNewMapDlg::CNewMapDlg(CWnd* pParent /*=NULL*/)
: CDialog(CNewMapDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CNewMapDlg)
m_nHeight = 0;
m_nWidth = 0;
//}}AFX_DATA_INIT
}
void CNewMapDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CNewMapDlg)
DDX_Control( pDX, IDC_SPINW, m_SpinW );
DDX_Control( pDX, IDC_SPINH, m_SpinH );
DDX_Text(pDX, IDC_HEIGHT, m_nHeight);
DDV_MinMaxInt(pDX, m_nHeight, 1, 500);
DDX_Text(pDX, IDC_WIDTH, m_nWidth);
DDV_MinMaxInt(pDX, m_nWidth, 1, 500);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CNewMapDlg, CDialog)
//{{AFX_MSG_MAP(CNewMapDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNewMapDlg message handlers
BOOL CNewMapDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_SpinH.SetRange( 1, 500 );
m_SpinW.SetRange( 1, 500 );
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}