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.

59 lines
1.8 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1993-1995
  4. * TITLE: BANDPAGE.H
  5. * VERSION: 1.0
  6. * AUTHOR: jsenior
  7. * DATE: 10/28/1998
  8. *
  9. ********************************************************************************
  10. *
  11. * CHANGE LOG:
  12. *
  13. * DATE REV DESCRIPTION
  14. * ---------- ------- ----------------------------------------------------------
  15. * 10/28/1998 jsenior Original implementation.
  16. *
  17. *******************************************************************************/
  18. #ifndef _BANDWIDTHPAGE_H
  19. #define _BANDWIDTHPAGE_H
  20. #include "PropPage.h"
  21. #include "FuelBar.h"
  22. #include "UsbItem.h"
  23. #define idh_devmgr_usb_band_bar 300700
  24. #define idh_devmgr_usb_list_devices 300800
  25. #define idh_devmgr_usb_refresh_button 300910
  26. #define idh_devmgr_disable_error_detection 300912
  27. class BandwidthPage : public UsbPropertyPage {
  28. public:
  29. BandwidthPage(UsbItem *item) : UsbPropertyPage(item) {Initialize();}
  30. BandwidthPage(HWND HWndParent, LPCSTR DevName) : UsbPropertyPage(HWndParent, DevName) {Initialize();}
  31. BandwidthPage(HDEVINFO DeviceInfoSet,
  32. PSP_DEVINFO_DATA DeviceInfoData) :
  33. UsbPropertyPage(DeviceInfoSet, DeviceInfoData) {Initialize();}
  34. HPROPSHEETPAGE Create();
  35. static BOOL IsErrorCheckingEnabled();
  36. protected:
  37. // message handlers
  38. BOOL OnCommand(INT wNotifyCode, INT wID, HWND hCtl);
  39. BOOL OnInitDialog();
  40. BOOL OnNotify(HWND hDlg, INT nID , LPNMHDR pnmh);
  41. void OnNotifyListDevices(HWND hDlg, LPNMHDR pnmh);
  42. UINT SetErrorCheckingEnable(BOOL ErrorCheckingEnabled);
  43. void EnableSystray(BOOL fEnable);
  44. void Refresh();
  45. VOID Initialize();
  46. BOOL newDisableErrorChecking, oldDisableErrorChecking;
  47. HWND hLstDevices;
  48. FuelBar fuelBar;
  49. };
  50. #endif // _BANDWIDTHPAGE_H