-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDlgCreateGrid.cpp
More file actions
50 lines (40 loc) · 1.13 KB
/
DlgCreateGrid.cpp
File metadata and controls
50 lines (40 loc) · 1.13 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
50
// DlgCreateGrid.cpp : implementation file
//
#include "stdafx.h"
#include "WinDE.h"
#include "DlgCreateGrid.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DlgCreateGrid dialog
DlgCreateGrid::DlgCreateGrid(CWnd* pParent /*=NULL*/)
: CDialog(DlgCreateGrid::IDD, pParent)
{
//{{AFX_DATA_INIT(DlgCreateGrid)
sizez = 1;
sizex = 1;
sizey = 1;
//}}AFX_DATA_INIT
}
void DlgCreateGrid::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DlgCreateGrid)
DDX_Text(pDX, IDC_GRID_DEPTH, sizez);
DDV_MinMaxInt(pDX, sizez, 1, 50);
DDX_Text(pDX, IDC_GRID_HEIGHT, sizex);
DDV_MinMaxInt(pDX, sizex, 1, 50);
DDX_Text(pDX, IDC_GRID_WIDTH, sizey);
DDV_MinMaxInt(pDX, sizey, 1, 50);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DlgCreateGrid, CDialog)
//{{AFX_MSG_MAP(DlgCreateGrid)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DlgCreateGrid message handlers