📄 ftpexp~1.h
字号:
// FtpExpDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include"afxinet.h"
// CFtpExpDlg 对话框
class CFtpExpDlg : public CDialog
{
// 构造
public:
CFtpExpDlg(CWnd* pParent = NULL); // 标准构造函数
//初始化一个Internet会话
void InitConnection();
//连接FTP服务器
BOOL OpenConnection(CString strServer);
//获取FTP服务器上的文件目录
int GetFileName(CStringArray * localNameArray );
//关闭与FTP服务器的连接
BOOL CloseConnection();
//定义CInternetSession类对象指针
CInternetSession *pInternetSession;
//定义CFtpConnection类对象指针
CFtpConnection *pFtpConnection;
//存储FTP站点的URL
CString m_strFullURL;
//存储FTP服务器的路径名
CString m_strFullPath;
//应用程序的名字
CString strAppName;
//Internet服务的类型
DWORD dwServiceType;
//FTP服务器的端口号
INTERNET_PORT nPort;
// 对话框数据
enum { IDD = IDD_FTPEXP_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedShow();
afx_msg void OnBnClickedAnonymous();
CListBox m_listFile;
CButton m_btnAnonymous;
CString m_strServer;
CString m_strName;
CString m_strPassWord;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -