-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDlgBusDiffData.cpp
65 lines (48 loc) · 1.06 KB
/
DlgBusDiffData.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
60
61
62
63
64
65
// DlgBusDiffData.cpp : 实现文件
//
#include "stdafx.h"
#include "FA2013.h"
#include "DlgBusDiffData.h"
#include "afxdialogex.h"
// CDlgBusDiffData 对话框
IMPLEMENT_DYNAMIC(CDlgBusDiffData, CDialog)
CDlgBusDiffData::CDlgBusDiffData(CWnd* pParent /*=NULL*/)
: CDialog(CDlgBusDiffData::IDD, pParent)
, Im(0)
, Iop(0)
, Iopres(0)
, Kres(0)
{
}
CDlgBusDiffData::~CDlgBusDiffData()
{
}
void CDlgBusDiffData::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_Im, Im);
DDX_Text(pDX, IDC_Iop, Iop);
DDX_Text(pDX, IDC_Iresop, Iopres);
DDX_Text(pDX, IDC_Kres, Kres);
}
BEGIN_MESSAGE_MAP(CDlgBusDiffData, CDialog)
END_MESSAGE_MAP()
// CDlgBusDiffData 消息处理程序
BOOL CDlgBusDiffData::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: 在此添加额外的初始化
Im=8;
Iop=0.3;
Iopres=1.2;
Kres =0.8;
UpdateData(false);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
void CDlgBusDiffData::OnOK()
{
// TODO: 在此添加专用代码和/或调用基类
UpdateData(true);
CDialog::OnOK();
}