Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1998
  6. //
  7. // File: pggen.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #if !defined(AFX_SUB_LIMIT_H__C0DCD9EA_64FE_11D1_855B_00C04FC31FD3__INCLUDED_)
  11. #define AFX_SUB_LIMIT_H__C0DCD9EA_64FE_11D1_855B_00C04FC31FD3__INCLUDED_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. // CPgSubLimit.h : header file
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CPgCPgSubLimit dialog
  19. class CPgSubLimit : public CACSDialog
  20. {
  21. DECLARE_DYNCREATE(CPgSubLimit)
  22. // Construction
  23. protected:
  24. CPgSubLimit();
  25. public:
  26. CPgSubLimit(CServiceLevelLimitsRecord* pRecord, int *pAvailTypes, CWnd* pParent);
  27. ~CPgSubLimit();
  28. // Dialog Data
  29. //{{AFX_DATA(CPgSubLimit)
  30. enum { IDD = IDD_SUBNET_LIMIT };
  31. CComboBox m_comboTypes;
  32. CEdit m_editTTPeakRate;
  33. CEdit m_editTTDataRate;
  34. CEdit m_editPeakRate;
  35. CEdit m_editDataRate;
  36. int m_nDataRateChoice;
  37. int m_nPeakRateChoice;
  38. int m_nTTDataRateChoice;
  39. int m_nTTPeakDataRateChoice;
  40. UINT m_uDataRate;
  41. UINT m_uPeakRate;
  42. UINT m_uTTDataRate;
  43. UINT m_uTTPeakRate;
  44. int m_nServiceType;
  45. //}}AFX_DATA
  46. // Overrides
  47. // ClassWizard generate virtual function overrides
  48. //{{AFX_VIRTUAL(CPgSubLimit)
  49. public:
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CPgSubLimit)
  57. virtual BOOL OnInitDialog();
  58. afx_msg void OnSubnetTrafficDatarateLimited();
  59. afx_msg void OnSubnetTrafficDatarateUnlimited();
  60. afx_msg void OnSubnetTrafficPeakrateLimited();
  61. afx_msg void OnSubnetTrafficPeakrateUnlimited();
  62. afx_msg void OnSubnetTrafficTtdatarateLimited();
  63. afx_msg void OnSubnetTrafficTtdatarateUnlimited();
  64. afx_msg void OnSubnetTrafficTtpeakrateLimited();
  65. afx_msg void OnSubnetTrafficTtpeakrateUnlimited();
  66. virtual void OnOK();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. void EnableEverything();
  70. void DataInit();
  71. CServiceLevelLimitsRecord* m_pLimitsRecord;
  72. int* m_pAvailTypes; // -1 is the end
  73. BOOL m_bFlowDataChanged;
  74. };
  75. //{{AFX_INSERT_LOCATION}}
  76. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  77. #endif // !defined(AFX_SUB_LIMIT_H__C0DCD9EA_64FE_11D1_855B_00C04FC31FD3__INCLUDED_)