-
Notifications
You must be signed in to change notification settings - Fork 0
/
perspectiveDialog.cpp
58 lines (45 loc) · 1.47 KB
/
perspectiveDialog.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
// perspectiveDialog.cpp : implementation file
//
#include "stdafx.h"
#include "OpenGL.h"
#include "perspectiveDialog.h"
#include <limits>
// perspectiveDialog dialog
IMPLEMENT_DYNCREATE(perspectiveDialog, CDialog)
perspectiveDialog::perspectiveDialog(float valL, float valR,float valT,float valB,float valD,
CWnd* pParent /*=NULL*/)
: CDialog(perspectiveDialog::IDD, pParent)
,left(valL), right(valR), top(valT), bottom(valB), dVal(valD)
{
}
perspectiveDialog::~perspectiveDialog()
{
}
void perspectiveDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_L, left);
DDX_Text(pDX, IDC_EDIT_R, right);
DDX_Text(pDX, IDC_EDIT_T, top);
DDX_Text(pDX, IDC_EDIT_B, bottom);
DDX_Text(pDX, IDC_EDIT_D, dVal);
DDV_MinMaxInt(pDX, (int)left, PERS_MIN, PERS_MAX);
DDV_MinMaxInt(pDX, (int)right, PERS_MIN, PERS_MAX);
DDV_MinMaxInt(pDX, (int)top, PERS_MIN, PERS_MAX);
DDV_MinMaxInt(pDX, (int)bottom, PERS_MIN, PERS_MAX);
DDV_MinMaxInt(pDX, (int)dVal, PERS_MIN, INT_MAX);
}
BOOL perspectiveDialog::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE; // return TRUE unless you set the focus to a control
}
BEGIN_MESSAGE_MAP(perspectiveDialog, CDialog)
ON_BN_CLICKED(IDOK, &perspectiveDialog::OnBnClickedOk)
END_MESSAGE_MAP()
// perspectiveDialog message handlers
void perspectiveDialog::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
OnOK();
}