-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCommAdvancedDlg.cpp
62 lines (51 loc) · 1.53 KB
/
CommAdvancedDlg.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
// CommAdvancedDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MyComm.h"
#include "CommAdvancedDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCommAdvancedDlg dialog
CCommAdvancedDlg::CCommAdvancedDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCommAdvancedDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCommAdvancedDlg)
m_dwoReadInter = 0;
m_dwoReadTotalMult = 0;
m_dwoReadTotalConst = 0;
m_dwoWriteTotalMult = 0;
m_dwoWriteTotalConst = 0;
//}}AFX_DATA_INIT
}
void CCommAdvancedDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCommAdvancedDlg)
DDX_Text(pDX, IDC_EDREADINTER, m_dwoReadInter);
DDX_Text(pDX, IDC_EDREADTOTALMUL, m_dwoReadTotalMult);
DDX_Text(pDX, IDC_EDREATOTALCONST, m_dwoReadTotalConst);
DDX_Text(pDX, IDC_EDWRITETOTALCONST, m_dwoWriteTotalMult);
DDX_Text(pDX, IDC_EDWRITETOTALMUL, m_dwoWriteTotalConst);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCommAdvancedDlg, CDialog)
//{{AFX_MSG_MAP(CCommAdvancedDlg)
ON_BN_CLICKED(IDC_BTDEFAULT, OnBtdefault)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCommAdvancedDlg message handlers
void CCommAdvancedDlg::OnBtdefault()
{
// TODO: Add your control notification handler code here
m_dwoReadInter = 1;
m_dwoReadTotalMult = 0;
m_dwoReadTotalConst = 0;
m_dwoWriteTotalMult = 0;
m_dwoWriteTotalConst =0;
UpdateData(FALSE);
}