-
Notifications
You must be signed in to change notification settings - Fork 1
/
PrespectiveControlDialog.cpp
executable file
·50 lines (35 loc) · 1.14 KB
/
PrespectiveControlDialog.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
// PrespectiveControlDialog.cpp : implementation file
//
#include "stdafx.h"
#include "CGWork.h"
#include "PrespectiveControlDialog.h"
#include "afxdialogex.h"
// PrespectiveControlDialog dialog
IMPLEMENT_DYNAMIC(PrespectiveControlDialog, CDialogEx)
PrespectiveControlDialog::PrespectiveControlDialog(CWnd* pParent /*=NULL*/)
: CDialogEx(PrespectiveControlDialog::IDD, pParent)
, d(1)
, m_prespective_alpha(0)
{
}
PrespectiveControlDialog::PrespectiveControlDialog(double default_d, double default_alpha, CWnd* pParent /*=NULL*/)
: CDialogEx(PrespectiveControlDialog::IDD, pParent)
, d(1)
{
d = default_d;
m_prespective_alpha = default_alpha;
}
PrespectiveControlDialog::~PrespectiveControlDialog()
{
}
void PrespectiveControlDialog::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_PRESPECTIVE_D, d);
DDV_MinMaxDouble(pDX, d, 0, d*d + 1);
DDX_Text(pDX, IDC_PRESPECTIVE_ALPHA, m_prespective_alpha);
DDV_MinMaxDouble(pDX, d, 0, d);
}
BEGIN_MESSAGE_MAP(PrespectiveControlDialog, CDialogEx)
END_MESSAGE_MAP()
// PrespectiveControlDialog message handlers