-
Notifications
You must be signed in to change notification settings - Fork 3
/
SetDialog.cpp
65 lines (53 loc) · 1.26 KB
/
SetDialog.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
// SetDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Wincc.h"
#include "SetDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetDialog dialog
CSetDialog::CSetDialog(CWnd* pParent /*=NULL*/)
: CDialog(CSetDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CSetDialog)
m_edit1 = 0;
m_edit2 = 0;
m_edit3 = 0;
m_edit4 = 0;
m_edit5 = 0;
s = -1;
//}}AFX_DATA_INIT
}
void CSetDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSetDialog)
DDX_Text(pDX, IDC_EDIT1, m_edit1);
DDX_Text(pDX, IDC_EDIT2, m_edit2);
DDX_Text(pDX, IDC_EDIT3, m_edit3);
DDX_Text(pDX, IDC_EDIT4, m_edit4);
DDX_Text(pDX, IDC_EDIT5, m_edit5);
DDX_Radio(pDX, IDC_S1, s);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSetDialog, CDialog)
//{{AFX_MSG_MAP(CSetDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetDialog message handlers
void CSetDialog::Get(char *buffer) //»ñÈ¡ÉèÖô°¿ÚµÄµÄÊý¾Ý
{
UpdateData();
buffer[0]='#';
buffer[1]=s+1;
buffer[2]=m_edit1;
buffer[3]=m_edit2;
buffer[4]=m_edit3;
buffer[5]=m_edit4;
buffer[6]=m_edit5;
}