?? page1.cpp
字號:
// Page1.cpp : implementation file
//
#include "stdafx.h"
#include "MA701TEST_C.h"
#include "Page1.h"
#include "CXFtp.h"
#include "LocalFileSelector.h"
#include "SaveFileSelector.h"
#include "frmSuccess.h"
#include "frmFailure.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//oftp_t_event FTP_Status(CString mStatus,long nSize);
CPage1* thePage=NULL;
/////////////////////////////////////////////////////////////////////////////
// CPage1 property page
IMPLEMENT_DYNCREATE(CPage1, CPropertyPage)
CPage1::CPage1() : CPropertyPage(CPage1::IDD)
{
//{{AFX_DATA_INIT(CPage1)
m_remote_hostname = _T("");
m_password = _T("");
m_username = _T("");
m_bytecount = _T("");
m_rate = _T("");
m_speed = _T("");
m_period = 0;
//}}AFX_DATA_INIT
CurrentSelFileName=CurrentSelFilePath="";
ListFrm=new ListDir(this);
TransTotal=TransPeriod=TransBytes=0;
TransJob="NONE";
thePage=this;
FTPObj=&oftp;
}
CPage1::~CPage1()
{
}
void CPage1::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPage1)
DDX_Control(pDX, IDC_STATUS, o_show_status);
DDX_Control(pDX, IDC_BUTTON2, o_find_Macs);
DDX_Control(pDX, IDC_BUTTON4, o_local);
DDX_Control(pDX, IDC_BUTTON3, o_remote);
DDX_Control(pDX, IDC_BUTTON6, o_upload);
DDX_Control(pDX, IDC_BUTTON5, o_download);
DDX_Control(pDX, IDC_SLIDER1, o_period);
DDX_Control(pDX, IDC_PROGRESS1, o_percent);
DDX_Control(pDX, IDC_COMBO1, o_Macs);
DDX_Control(pDX, IDC_LIST1, o_lister);
DDX_Control(pDX, IDC_BUTTON1, o_onoff);
DDX_Control(pDX, IDC_EDIT4, o_password);
DDX_Control(pDX, IDC_EDIT3, o_username);
DDX_Control(pDX, IDC_EDIT2, o_remote_hostname);
DDX_Text(pDX, IDC_EDIT2, m_remote_hostname);
DDV_MaxChars(pDX, m_remote_hostname, 255);
DDX_Text(pDX, IDC_EDIT4, m_password);
DDV_MaxChars(pDX, m_password, 255);
DDX_Text(pDX, IDC_EDIT3, m_username);
DDV_MaxChars(pDX, m_username, 255);
DDX_Text(pDX, IDC_EDIT5, m_bytecount);
DDX_Text(pDX, IDC_EDIT6, m_rate);
DDX_Text(pDX, IDC_EDIT7, m_speed);
DDX_Slider(pDX, IDC_SLIDER1, m_period);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPage1, CPropertyPage)
//{{AFX_MSG_MAP(CPage1)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
ON_BN_CLICKED(IDC_Disable, OnDisable)
ON_BN_CLICKED(IDC_Enable, OnEnable)
ON_BN_CLICKED(IDC_BINARY, OnBinary)
ON_BN_CLICKED(IDC_ASCII, OnAscii)
ON_BN_CLICKED(IDC_Local, OnLocal)
ON_WM_DESTROY()
ON_BN_CLICKED(IDC_Remote, OnRemote)
ON_BN_CLICKED(IDC_Download, OnDownload)
ON_WM_CREATE()
ON_WM_SHOWWINDOW()
ON_BN_CLICKED(IDC_Upload, OnUpload)
ON_BN_CLICKED(IDC_STATUS, OnStatus)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPage1 message handlers
// 盢穝
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -