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

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_DLGADVANCEDPAGE_H__3CC7AA39_1D92_47C8_886F_331B97B79D3D__INCLUDED_)
  2. #define AFX_DLGADVANCEDPAGE_H__3CC7AA39_1D92_47C8_886F_331B97B79D3D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DlgAdvancedPage.h : header file
  7. //
  8. #include "StorageWrapper.h"
  9. #include "SetupRegister.h"
  10. #include "GroupBoxEx.h"
  11. #include "ButtonEx.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDlgAdvancedPage dialog
  14. class CDlgAdvancedPage : public CPropertyPage
  15. {
  16. // Construction
  17. public:
  18. CDlgAdvancedPage(CWnd* pParent = NULL);   // standard constructor
  19. void GetData(CSetupRegister* pSetupRegister);
  20. void SetData(CSetupRegister* pSetupRegister);
  21. bool Apply();
  22. // Dialog Data
  23. //{{AFX_DATA(CDlgAdvancedPage)
  24. enum { IDD = IDD_DIALOG_PAGE_ADVANCED };
  25. CButtonEx m_btnReset;
  26. CGroupBoxEx m_gpAdvSetup;
  27. CComboBox m_cbFileLock;
  28. CComboBox m_cbExtraCheck;
  29. CSpinButtonCtrl m_spinAllocSpeed;
  30. CComboBox m_cbSeedType;
  31. CComboBox m_cbFileOpenMax;
  32. CComboBox m_cbAllocType;
  33. CSpinButtonCtrl m_spinPeersMax;
  34. CSpinButtonCtrl m_spinDisplayItval;
  35. CSpinButtonCtrl m_spinPeersMin;
  36. CString m_strSendServerIP;
  37. CString m_strBindIP;
  38. //}}AFX_DATA
  39. long m_lPeersMin;
  40. long m_lPeersMax;
  41. long m_lDisplayItval;
  42. long m_lAllocSpeed;
  43. CStorageWrapperEx::eAllocType m_eAllocType;
  44. long m_lFileOpenMax;
  45. bool m_bSuperSeed;
  46. // Overrides
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(CDlgAdvancedPage)
  49. public:
  50. virtual BOOL PreTranslateMessage(MSG* pMsg);
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(CDlgAdvancedPage)
  58. virtual BOOL OnInitDialog();
  59. virtual void OnOK();
  60. virtual void OnCancel();
  61. afx_msg void OnButtonReset();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. private:
  65. CSetupRegister* m_pSetupRegister;
  66. CToolTipCtrl m_Tooltip;
  67. };
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_DLGADVANCEDPAGE_H__3CC7AA39_1D92_47C8_886F_331B97B79D3D__INCLUDED_)