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

📄 netdownmtrdlg.h

📁 多线程下载的
💻 H
字号:
// NetDownMTRDlg.h : header file
//

#if !defined(AFX_NETDOWNMTRDLG_H__52CD53DD_9B13_431B_BB58_EFF3ABD26D0D__INCLUDED_)
#define AFX_NETDOWNMTRDLG_H__52CD53DD_9B13_431B_BB58_EFF3ABD26D0D__INCLUDED_

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

#include "DownloadMTR.h"
#include "GradientProgressCtrl.h"
#include "OleListDropTarget.h"
#include "resource.h"

#define WM_DOWNLOAD_NOTIFY (WM_USER+0x100)
/////////////////////////////////////////////////////////////////////////////
// CNetDownMTRDlg dialog

class CNetDownMTRDlg : public CDialog
{
// Construction
public:
	void AddURL ( LPCTSTR lpszURL );
	BOOL Add_DownloadNotifyPara ( t_DownloadNotifyPara *pDownloadNotifyPara );
	t_Ary_DownloadNotifyPara m_Ary_DownloadNotifyPara;
	CCriticalSection	m_CSFor_Ary_DownloadNotifyPara;
	COleListDropTarget m_OleTarget;

	void DeleteInstance_DownloadMTR();
	void GetCtrlValue();
	CNetDownMTRDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CNetDownMTRDlg)
	enum { IDD = IDD_NETDOWNMTR_DIALOG };
	CGradientProgressCtrl	m_progress;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CNetDownMTRDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID,LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnBUTTONBrowse();
	afx_msg void OnDestroy();
	afx_msg void OnChangeEDITRemoteFileURL();
	afx_msg void OnBUTTONStop();
	afx_msg void OnKillfocusEDITFileName();
	afx_msg void OnSetfocusEDITFileName();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void ReadSettingInfoAndSetCtrlValue ( UINT nCtrlID, LPCTSTR lpszDefaultValue );
	void SetCtrlValue ();
	CString GetCtrlValueAndSaveSettingInfo(UINT nCtrlID);
private:
	LRESULT OnWM_SHOWLOG(WPARAM wParam, LPARAM lParam);
	void SetFileNameEditSel();
	void EnableSomeWindow();
	BOOL m_bDownloadIsStart;
	void Callback_DownloadNotify ( t_DownloadNotifyPara *pDownloadNotifyPara );
	void Get_Ary_DownloadNotifyPara ( t_Ary_DownloadNotifyPara &Ary_DownloadNotifyPara );
	LRESULT OnWM_DOWNLOAD_NOTIFY ( WPARAM wParam, LPARAM lParam );
	CDownloadMTR* CreateInstance_DownloadMTR ();
	void OutStatusString ( int nIndex, LPCTSTR lpszText );
	CDownloadMTR *m_pDownloadMTR;
	BOOL m_bFileNameGetFocus;
};


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

#endif // !defined(AFX_NETDOWNMTRDLG_H__52CD53DD_9B13_431B_BB58_EFF3ABD26D0D__INCLUDED_)

⌨️ 快捷键说明

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