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

📄 ftpfilebrowse.h

📁 ftp 服务器源码
💻 H
字号:
#if !defined(AFX_FTPFILEBROWSE_H__7ECC3081_ABFA_11D3_ABE2_0008C7DAA4E7__INCLUDED_)
#define AFX_FTPFILEBROWSE_H__7ECC3081_ABFA_11D3_ABE2_0008C7DAA4E7__INCLUDED_
#include <afxinet.h>
#include "Prop.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct tagFTPPROP { // ofn 
    CString		Server;
	CString		username;
	CString		password;
	UINT		iPort;
	DWORD     lStructSize; 
    HWND          hwndOwner; 
    HINSTANCE     hInstance; 
    CString       Filter; 
    CString        FileTitle; 
    CString      InitialDir; 
    CString       Title; 
    DWORD        Flags; 
    WORD          nFileOffset; 
    WORD          nFileExtension; 
} FTPPROP; 


typedef enum  { HDRIVE,
				FDRIVE,
				CFOLDER,
				OFOLDER,
				CDROM,
				DESKTOP,
				MYCOMPUTER,
				NETHOOD,
				FILE_,
				FAX,
				MAIL
			  };// FtpFileBrowse.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// FtpFileBrowse dialog

class FtpFileBrowse : public CDialog
{
// Construction
public:
	void InsertString(int no,CString str);
	CImageList m_iconlist;
	CComboBoxEx m_cboLookIn;
	CToolTipCtrl toolnew;
	void SetServer(CString server,CString user,CString password,int port =21);
	CBitmap propbit;
	CBitmap delbit;
	BOOL connected;
	BOOL newdir;
	CString GetRoot();
	CString GetFilePath();
	CString GetFileURL();
	CString GetFileName();
	CString file_fileurl;
	CString file_root;
	CString file_filepath;
	CString file_filename;
	CProp m_general;
	BOOL dblclick;
	CString lastdir;
	void FillFiles(CString dir);
	BOOL IsDir(CString dir);
	int GetIconIndex(const CString &csFileName);
	CFtpConnection *ftp_connection;
	CInternetSession inet_session;
	CString m_curdir;
	CImageList m_smallImageList;
	CBitmap newbit;
	CBitmap upbit;
	FTPPROP m_ftpprop;
	FtpFileBrowse(CWnd* pParent = NULL);   // standard constructor
	~FtpFileBrowse();
	// Dialog Data
	//{{AFX_DATA(FtpFileBrowse)
	enum { IDD = IDD_FTPFILEBROWSE };
	CComboBoxEx	m_excom;
	CButton	m_prop;
	CButton	m_del;
	CListCtrl	m_list;
	CButton	m_up;
	CComboBox	m_type;
	CButton	m_new;
	CString	m_filename;
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(FtpFileBrowse)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(FtpFileBrowse)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeDir();
	afx_msg void OnRclickView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClickView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnUp();
	afx_msg void OnNew();
	afx_msg void OnOpen();
	afx_msg void OnFilesSelect();
	afx_msg void OnFilesOpenwith();
	afx_msg void OnFilesDelete();
	afx_msg void OnFilesSendtonotepad();
	afx_msg void OnDirSelect();
	afx_msg void OnDirDelete();
	afx_msg void OnFilesProperties();
	afx_msg void OnDirProperties();
	afx_msg void OnBeginlabeleditView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnEndlabeleditView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDel();
	afx_msg void OnProp();
	afx_msg void OnEmtpyNewdirectory();
	afx_msg void OnEmtpyProperties();
	afx_msg void OnSelchangeComboboxex3();
	afx_msg void OnFilesRename();
	afx_msg void OnDirRename();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FTPFILEBROWSE_H__7ECC3081_ABFA_11D3_ABE2_0008C7DAA4E7__INCLUDED_)

⌨️ 快捷键说明

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