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

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_DLGRUNPARAMETERS_H__4CCBA8C9_6311_4B42_A13A_34B9C8FF6013__INCLUDED_)
  2. #define AFX_DLGRUNPARAMETERS_H__4CCBA8C9_6311_4B42_A13A_34B9C8FF6013__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DlgRunParameters.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDlgRunParameters dialog
  10. #include "ButtonEx.h"
  11. #include "GroupBoxEx.h"
  12. class CFileDBItem;
  13. class CSetupRegister;
  14. class CDlgRunParameters : public CDialog
  15. {
  16. // Construction
  17. public:
  18. CDlgRunParameters(CFileDBItem* pFileDBItem, CSetupRegister* pSetupRegister, CWnd* pParent = NULL);   // standard constructor
  19. // Dialog Data
  20. //{{AFX_DATA(CDlgRunParameters)
  21. enum { IDD = IDD_DIALOG_RUN_PARAMETERS };
  22. CSpinButtonCtrl m_spinConnectIntval;
  23. CSpinButtonCtrl m_spinConnectErrMax;
  24. CSpinButtonCtrl m_spinPeersMax;
  25. CSpinButtonCtrl m_spinPeersMin;
  26. CSpinButtonCtrl m_spinCompleteKeepSeedHour;
  27. CGroupBoxEx m_gpUpSpeed;
  28. CGroupBoxEx m_gpGeneral;
  29. CButtonEx m_btnCancel;
  30. CButtonEx m_btnOK;
  31. CStatic m_stSpeedMax;
  32. CStatic m_stSpeedMin;
  33. CStatic m_stPeersMax;
  34. CStatic m_stPeersMin;
  35. CComboBox m_cbGlobalSetup;
  36. CSliderCtrl m_sliderUploadSpeedMax;
  37. CSliderCtrl m_sliderUploadPeersMax;
  38. CSpinButtonCtrl m_spinUploadSpeedMax;
  39. CSpinButtonCtrl m_spinUploadPeersMax;
  40. CComboBox m_cbDownSpeed;
  41. //}}AFX_DATA
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CDlgRunParameters)
  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(CDlgRunParameters)
  52. virtual BOOL OnInitDialog();
  53. afx_msg void OnSelchangeComboGlobalSetup();
  54. afx_msg void OnSelchangeComboDownSpeed();
  55. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  56. afx_msg void OnDeltaposSpinUploadSpeedMax(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnDeltaposSpinUploadPeersMax(NMHDR* pNMHDR, LRESULT* pResult);
  58. virtual void OnOK();
  59. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. private:
  63. long GetSpinValue(CSpinButtonCtrl& SpinCtrl);
  64. void SetValue(long lSpeedMax, long lPeersMax);
  65. void UpdateCommandUI();
  66. CFileDBItem* m_pFileDBItem;
  67. CSetupRegister* m_pSetupRegister;
  68. CImageList m_ctlImage;
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_DLGRUNPARAMETERS_H__4CCBA8C9_6311_4B42_A13A_34B9C8FF6013__INCLUDED_)