-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDlgdown.cpp
More file actions
57 lines (38 loc) · 1011 Bytes
/
Copy pathCDlgdown.cpp
File metadata and controls
57 lines (38 loc) · 1011 Bytes
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
// CDlgdown.cpp: 实现文件
//
#include "pch.h"
#include "tftp.h"
#include "CDlgdown.h"
#include "afxdialogex.h"
#include "tftpDlg.h"
// CDlgdown 对话框
IMPLEMENT_DYNAMIC(CDlgdown, CDialogEx)
CDlgdown::CDlgdown(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_DOWN, pParent)
{
}
CDlgdown::~CDlgdown()
{
}
void CDlgdown::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDITFROM, downloadfrom);
DDX_Control(pDX, IDC_EDITTO, downloadto);
}
BEGIN_MESSAGE_MAP(CDlgdown, CDialogEx)
ON_BN_CLICKED(IDC_BUTTONDOWNLOAD, &CDlgdown::OnBnClickedButtondownload)
END_MESSAGE_MAP()
// CDlgdown 消息处理程序
void CDlgdown::OnBnClickedButtondownload()
{
CString temp_from;
downloadfrom.GetWindowTextW(temp_from);
CString temp_to;
downloadto.GetWindowTextW(temp_to);
CtftpDlg* temp = (CtftpDlg*)AfxGetMainWnd();
temp->filenamefroms = temp_from;
temp->filenametos = temp_to;
temp->DownLoad();
// TODO: 在此添加控件通知处理程序代码
}