-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDlgup.cpp
More file actions
65 lines (40 loc) · 1.07 KB
/
Copy pathCDlgup.cpp
File metadata and controls
65 lines (40 loc) · 1.07 KB
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
// CDlgup.cpp: 实现文件
//
#include "pch.h"
#include "tftp.h"
#include "CDlgup.h"
#include "afxdialogex.h"
#include "tftpDlg.h"
// CDlgup 对话框
IMPLEMENT_DYNAMIC(CDlgup, CDialogEx)
CDlgup::CDlgup(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_UP, pParent)
{
}
CDlgup::~CDlgup()
{
}
void CDlgup::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDIT2, filename_up);
}
BEGIN_MESSAGE_MAP(CDlgup, CDialogEx)
ON_BN_CLICKED(IDC_BUTTONUPLOAD, &CDlgup::OnBnClickedButtonupload)
END_MESSAGE_MAP()
// CDlgup 消息处理程序
void CDlgup::OnBnClickedButtonupload()
{
CString temp_upfilenames;
filename_up.GetWindowTextW(temp_upfilenames);
CtftpDlg* temp = (CtftpDlg*)AfxGetMainWnd();
temp->filenames = temp_upfilenames;
temp->UpLoad();
/*CtftpDlg* temp = (CtftpDlg*)AfxGetMainWnd();
CString localip_up = temp->GetLocalIp();
CString farip_up = temp->GetFarIp();
CString filenameW;
int mode = temp->octet_radio.GetCheck();
filename_up.GetWindowTextW(filenameW);*/
// TODO: 在此添加控件通知处理程序代码
}