DlgRunParameters.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:3k
源码类别:
P2P编程
开发平台:
Visual C++
- #if !defined(AFX_DLGRUNPARAMETERS_H__4CCBA8C9_6311_4B42_A13A_34B9C8FF6013__INCLUDED_)
- #define AFX_DLGRUNPARAMETERS_H__4CCBA8C9_6311_4B42_A13A_34B9C8FF6013__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DlgRunParameters.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CDlgRunParameters dialog
- #include "ButtonEx.h"
- #include "GroupBoxEx.h"
- class CFileDBItem;
- class CSetupRegister;
- class CDlgRunParameters : public CDialog
- {
- // Construction
- public:
- CDlgRunParameters(CFileDBItem* pFileDBItem, CSetupRegister* pSetupRegister, CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CDlgRunParameters)
- enum { IDD = IDD_DIALOG_RUN_PARAMETERS };
- CSpinButtonCtrl m_spinConnectIntval;
- CSpinButtonCtrl m_spinConnectErrMax;
- CSpinButtonCtrl m_spinPeersMax;
- CSpinButtonCtrl m_spinPeersMin;
- CSpinButtonCtrl m_spinCompleteKeepSeedHour;
- CGroupBoxEx m_gpUpSpeed;
- CGroupBoxEx m_gpGeneral;
- CButtonEx m_btnCancel;
- CButtonEx m_btnOK;
- CStatic m_stSpeedMax;
- CStatic m_stSpeedMin;
- CStatic m_stPeersMax;
- CStatic m_stPeersMin;
- CComboBox m_cbGlobalSetup;
- CSliderCtrl m_sliderUploadSpeedMax;
- CSliderCtrl m_sliderUploadPeersMax;
- CSpinButtonCtrl m_spinUploadSpeedMax;
- CSpinButtonCtrl m_spinUploadPeersMax;
- CComboBox m_cbDownSpeed;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDlgRunParameters)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CDlgRunParameters)
- virtual BOOL OnInitDialog();
- afx_msg void OnSelchangeComboGlobalSetup();
- afx_msg void OnSelchangeComboDownSpeed();
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnDeltaposSpinUploadSpeedMax(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinUploadPeersMax(NMHDR* pNMHDR, LRESULT* pResult);
- virtual void OnOK();
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- long GetSpinValue(CSpinButtonCtrl& SpinCtrl);
- void SetValue(long lSpeedMax, long lPeersMax);
- void UpdateCommandUI();
- CFileDBItem* m_pFileDBItem;
- CSetupRegister* m_pSetupRegister;
- CImageList m_ctlImage;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DLGRUNPARAMETERS_H__4CCBA8C9_6311_4B42_A13A_34B9C8FF6013__INCLUDED_)