ftpupdatedlg.h

来自「自己改写的在WINCE上开发用的EVC++的FTP操作示例工程,希望能给相关人士」· C头文件 代码 · 共 64 行

H
64
字号
// FTPUpdateDlg.h : header file
//

#if !defined(AFX_FTPUPDATEDLG_H__5F22861D_FB9F_4DE5_940B_7FF4948B45B7__INCLUDED_)
#define AFX_FTPUPDATEDLG_H__5F22861D_FB9F_4DE5_940B_7FF4948B45B7__INCLUDED_

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

#include "FTPClient.h"
#include "StringA.h"	// Added by ClassView

/////////////////////////////////////////////////////////////////////////////
// CFTPUpdateDlg dialog

class CFTPUpdateDlg : public CDialog,public nsFTP::CNotification
{
public:
   nsFTP::CFTPClient                 m_FTPClient;
   nsFTP::CLogonInfo                 m_LogonInfo;

protected:
   virtual void OnInternalError(CStringA strErrorMsg, CStringA strFileName, DWORD dwLineNr);
   virtual void OnSendCommand(CStringA strCommand);
   virtual void OnResponse(CStringA strResponse);

// Construction
public:
	CStringA GetServerIP();
	CFTPUpdateDlg(CWnd* pParent = NULL);	// standard constructor
	void WriteLine(const CString& cszLine, COLORREF crText);

// Dialog Data
	//{{AFX_DATA(CFTPUpdateDlg)
	enum { IDD = IDD_FTPUPDATE_DIALOG };
	CString	m_strTip;
	CString	m_strIP;
	int		m_nPort;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFTPUpdateDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FTPUPDATEDLG_H__5F22861D_FB9F_4DE5_940B_7FF4948B45B7__INCLUDED_)

⌨️ 快捷键说明

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