-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rectangle.cpp
59 lines (45 loc) · 1.13 KB
/
Rectangle.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
// Rectangle.cpp : 实现文件
//
#include "stdafx.h"
#include "radio.h"
#include "Rectangle.h"
#include "afxdialogex.h"
// CRectangle 对话框
IMPLEMENT_DYNAMIC(CRectangle, CDialogEx)
CRectangle::CRectangle(CWnd* pParent /*=NULL*/)
: CDialogEx(CRectangle::IDD, pParent)
, LURectLong(73.1611)
, UPRectLati(51.7756)
, RURectLong(73.1611)
, RURectLati(51.7756)
, LDRectLong(73.1611)
, LDRectLati(51.7756)
, RDRectLong(73.1611)
, RDRectLati(51.7756)
{
}
CRectangle::~CRectangle()
{
}
void CRectangle::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT5, LURectLong);
DDX_Text(pDX, IDC_EDIT6, UPRectLati);
DDX_Text(pDX, IDC_EDIT7, RURectLong);
DDX_Text(pDX, IDC_EDIT8, RURectLati);
DDX_Text(pDX, IDC_EDIT9, LDRectLong);
DDX_Text(pDX, IDC_EDIT10, LDRectLati);
DDX_Text(pDX, IDC_EDIT11, RDRectLong);
DDX_Text(pDX, IDC_EDIT12, RDRectLati);
}
BEGIN_MESSAGE_MAP(CRectangle, CDialogEx)
ON_BN_CLICKED(IDOK, &CRectangle::OnBnClickedOk)
END_MESSAGE_MAP()
// CRectangle 消息处理程序
void CRectangle::OnBnClickedOk()
{
// TODO: 在此添加控件通知处理程序代码
UpdateData(true);
CDialogEx::OnOK();
}