DlgDownloadSetup.h
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_DLGDOWNLOADSETUP_H__CAD988C3_A7FA_4DBD_AA3F_5EF1C509297D__INCLUDED_)
  2. #define AFX_DLGDOWNLOADSETUP_H__CAD988C3_A7FA_4DBD_AA3F_5EF1C509297D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DlgDownloadSetup.h : header file
  7. //
  8. #include "SetupRegister.h"
  9. #include "GroupBoxEx.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CDlgDownloadSetup dialog
  12. class CDlgDownloadSetup : public CPropertyPage
  13. {
  14. // Construction
  15. public:
  16. CDlgDownloadSetup(CWnd* pParent = NULL);   // standard constructor
  17. void SetData(CSetupRegister *pSetupRegister);
  18. void GetData(CSetupRegister *pSetupRegister);
  19. bool Apply();
  20. // Dialog Data
  21. //{{AFX_DATA(CDlgDownloadSetup)
  22. enum { IDD = IDD_DIALOG_PAGE_DOWNLOAD_SETUP };
  23. CStatic m_stUpSpeedInfo;
  24. CGroupBoxEx m_gpUpSpeed;
  25. CGroupBoxEx m_gpConSetup;
  26. CSpinButtonCtrl m_spinCompleteKeepSeedHour;
  27. CSpinButtonCtrl m_spinDownloadAllCount;
  28. CSpinButtonCtrl m_spinConnectIntval;
  29. CSpinButtonCtrl m_spinConnectErrMax;
  30. CComboBox m_cbDownSpeed;
  31. CSpinButtonCtrl m_spinPortMax;
  32. CSpinButtonCtrl m_spinPortMin;
  33. //}}AFX_DATA
  34. // BOOL m_bCompleteKeepSeed;
  35. long m_lConnectErrorMax;
  36. long m_lConnectIntval;
  37. long m_lDownloadAllCount;
  38. long m_lCompleteKeepSeedHour; // Hour.
  39. long m_lPortMin;
  40. long m_lPortMax;
  41. long m_lDownSpeed;
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CDlgDownloadSetup)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(CDlgDownloadSetup)
  52. virtual BOOL OnInitDialog();
  53. virtual void OnOK();
  54. virtual void OnCancel();
  55. afx_msg void OnCheckKeepSeed();
  56. afx_msg void OnSelchangeComboDownSpeed();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_DLGDOWNLOADSETUP_H__CAD988C3_A7FA_4DBD_AA3F_5EF1C509297D__INCLUDED_)