⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myftpdlg.h

📁 用VC++做的FTP客户机程序
💻 H
字号:
// MyFtpDlg.h : header file
//

#if !defined(AFX_MYFTPDLG_H__91E34BFF_2935_4334_BEE8_49C34942A679__INCLUDED_)
#define AFX_MYFTPDLG_H__91E34BFF_2935_4334_BEE8_49C34942A679__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include < afxinet.h >
/////////////////////////////////////////////////////////////////////////////
// CMyFtpDlg dialog

class CMyFtpDlg : public CDialog
{
// Construction
public:
	CMyFtpDlg(CWnd* pParent = NULL);	// standard constructor
    ~CMyFtpDlg();

// Dialog Data
	//{{AFX_DATA(CMyFtpDlg)
	enum { IDD = IDD_MYFTP_DIALOG };
	CListCtrl	m_FileList;
	CString	m_HostEdit;
	CString	m_PasswordEdit;
	CString	m_UserEdit;
	int		m_port;
	CString	m_DirName;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyFtpDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HWND CreateTipDlg();
	void OnCurdir();
    void OnChangdir();
	CString GetTimeStr(FILETIME ftWrite);
	void List();

	int IndexInFieldList;//存储m_FileList的项目索引
	int iItemCount;
	CInternetSession  *m_pInetSession;
	CFtpConnection *m_pFtpConnection;
	BOOL bConnect;
	BOOL bFirstConnect;
    CString strDirTmp;

	HICON m_hIcon;
 
	// Generated message map functions
	//{{AFX_MSG(CMyFtpDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConnect();
	afx_msg void OnSend();
	afx_msg void OnDisconnect();
	afx_msg void OnCreatedir();
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnFatherdir();
	afx_msg void OnDel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void Deletedir(CString strDirToDel);
	void Deletefile(CString strFileToDel);
	void DownLoadFile(CString strFileName);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYFTPDLG_H__91E34BFF_2935_4334_BEE8_49C34942A679__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -