cfileclientdlg.h

来自「一个关于下载文件客户程序的小程序」· C头文件 代码 · 共 68 行

H
68
字号
// CFileClientDlg.h : header file
//

#if !defined(AFX_CFILECLIENTDLG_H__C1973E26_4AD3_4A95_AD9E_9129AF95A195__INCLUDED_)
#define AFX_CFILECLIENTDLG_H__C1973E26_4AD3_4A95_AD9E_9129AF95A195__INCLUDED_

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

struct DOWNLOAD_FILE_INFO
{
	CString strOriginal;		//原文件名
	CString strLocal;			//本地文件路径名
};

/////////////////////////////////////////////////////////////////////////////
// CCFileClientDlg dialog

class CCFileClientDlg : public CDialog
{
// Construction
public:
	CString m_strDestDir;
	CCFileClientDlg(CWnd* pParent = NULL);	// standard constructor
	
	CWinThread* m_pClientThread;

// Dialog Data
	//{{AFX_DATA(CCFileClientDlg)
	enum { IDD = IDD_CFILECLIENT_DIALOG };
	CListCtrl	m_ctrlFileList;
	CIPAddressCtrl	m_ctrlServerIP;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCFileClientDlg)
	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 OnBrowse();
	afx_msg void OnDownload();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	afx_msg LRESULT OnClientReport(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

private:
	CString m_strServerIP;
};

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

#endif // !defined(AFX_CFILECLIENTDLG_H__C1973E26_4AD3_4A95_AD9E_9129AF95A195__INCLUDED_)

⌨️ 快捷键说明

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