-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShowDlg.cpp
executable file
·76 lines (57 loc) · 1.39 KB
/
ShowDlg.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
66
67
68
69
70
71
72
73
74
75
76
// ShowDlg.cpp : implementation file
//
#include "stdafx.h"
#include "afxwin.h"
#include "想做个通讯录希望别坑了w.h"
#include "ShowDlg.h"
#include "AddDlg.h"
#include "ModifyDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CShowDlg dialog
CShowDlg::CShowDlg(CWnd* pParent /*=NULL*/)
: CDialog(CShowDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CShowDlg)
m_strName = _T("");
m_strNumber = _T("");
//}}AFX_DATA_INIT
}
void CShowDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CShowDlg)
DDX_Text(pDX, IDC_EDITNAME, m_strName);
DDX_Text(pDX, IDC_EDITNUM, m_strNumber);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CShowDlg, CDialog)
//{{AFX_MSG_MAP(CShowDlg)
ON_BN_CLICKED(IDC_OK, OnOk)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CShowDlg message handlers
void CShowDlg::SetValue(CString name,CString number)
{
m_strName=name;
m_strNumber=number;
}
void CShowDlg::OnCancel()
{
DestroyWindow();
}
void CShowDlg::PostNcDestroy()
{
// TODO: Add your specialized code here and/or call the base class
CDialog::PostNcDestroy();
delete this;
}
void CShowDlg::OnOk()
{
CDialog::OnOK();
}