NetDownMTRDlg.h
上传用户:oadesign
上传日期:2013-12-25
资源大小:265k
文件大小:3k
- // 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)
- 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 OnBUTTONAbout();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void ReadSettingInfoAndSetCtrlValue ( UINT nCtrlID, LPCTSTR lpszDefaultValue );
- void SetCtrlValue ();
- CString GetCtrlValueAndSaveSettingInfo(UINT nCtrlID);
- private:
- 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;
- };
- //{{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_)