Leaked source code of windows server 2003
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.

87 lines
3.0 KiB

  1. /****************************************************************************
  2. * @doc INTERNAL SYSTEMP
  3. *
  4. * @module SystemP.h | Header file for the <c CSystemProperty>
  5. * class used to implement a property page to test the TAPI control
  6. * interface <i ITQualityControllerConfig>.
  7. ***************************************************************************/
  8. #define NUM_SYSTEM_CONTROLS 6
  9. #define IDC_Curr_OutputBandwidth 0
  10. #define IDC_Curr_InputBandwidth 1
  11. #define IDC_Curr_CPULoad 2
  12. #define IDC_Max_OutputBandwidth 3
  13. #define IDC_Max_InputBandwidth 4
  14. #define IDC_Max_CPULoad 5
  15. /****************************************************************************
  16. * @doc INTERNAL CSYSTEMPCLASS
  17. *
  18. * @class CSystemProperty | This class implements handling of a
  19. * single net property in a property page.
  20. *
  21. * @mdata int | CSystemProperty | m_NumProperties | Keeps
  22. * track of the number of properties.
  23. *
  24. * @mdata ITQualityControllerConfig* | CSystemProperty | m_pITQualityControllerConfig | Pointer
  25. * to the <i ITQualityControllerConfig> interface.
  26. ***************************************************************************/
  27. class CSystemProperty : public CPropertyEditor
  28. {
  29. public:
  30. CSystemProperty(HWND hDlg, ULONG IDLabel, ULONG IDMinControl, ULONG IDMaxControl, ULONG IDDefaultControl, ULONG IDStepControl, ULONG IDEditControl, ULONG IDTrackbarControl, ULONG IDProgressControl, ULONG IDProperty); //, ITQualityControllerConfig *pITQualityControllerConfig);
  31. ~CSystemProperty ();
  32. // CPropertyEditor base class pure virtual overrides
  33. HRESULT GetValue();
  34. HRESULT SetValue();
  35. HRESULT GetRange();
  36. private:
  37. // ITQualityControllerConfig *m_pITQualityControllerConfig;
  38. };
  39. /****************************************************************************
  40. * @doc INTERNAL CSYSTEMPCLASS
  41. *
  42. * @class CSystemProperties | This class implements a property page
  43. * to test the new TAPI control interface <i ITQualityControl>.
  44. *
  45. * @mdata int | CSystemProperties | m_NumProperties | Keeps
  46. * track of the number of properties.
  47. *
  48. * @mdata ITQualityControllerConfig* | CSystemProperties | m_pITQualityControllerConfig | Pointer
  49. * to the <i ITQualityControllerConfig> interface.
  50. *
  51. * @mdata CSystemProperty* | CSystemProperties | m_Controls[NUM_SYSTEM_CONTROLS] | Array
  52. * of capture properties.
  53. ***************************************************************************/
  54. class CSystemProperties
  55. {
  56. public:
  57. CSystemProperties();
  58. ~CSystemProperties();
  59. HPROPSHEETPAGE OnCreate();
  60. HRESULT OnConnect(ITAddress *pITAddress);
  61. HRESULT OnDisconnect();
  62. HRESULT OnActivate();
  63. HRESULT OnDeactivate();
  64. HRESULT OnApplyChanges();
  65. private:
  66. void SetDirty();
  67. BOOL m_bInit;
  68. HWND m_hDlg;
  69. int m_NumProperties;
  70. // ITQualityControllerConfig *m_pITQualityControllerConfig;
  71. CSystemProperty *m_Controls[NUM_SYSTEM_CONTROLS];
  72. // Dialog proc
  73. static INT_PTR CALLBACK BaseDlgProc(HWND hDlg, UINT uMessage, WPARAM wParam, LPARAM lParam);
  74. };