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.

55 lines
1.7 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1993-1995
  4. * TITLE: POWRPAGE.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 _POWERPAGE_H
  19. #define _POWERPAGE_H
  20. #include "PropPage.h"
  21. #include "UsbItem.h"
  22. #define idh_devmgr_hub_self_power 300100
  23. #define idh_devmgr_hub_power_avail 300200
  24. #define idh_devmgr_hub_protection 300300
  25. #define idh_devmgr_hub_devices_on_this_hub 300400
  26. #define idh_devmgr_hub_list_devices 300500
  27. #define idh_devmgr_hub_refresh_button 300600
  28. class PowerPage : public UsbPropertyPage {
  29. public:
  30. PowerPage(UsbItem *item) : UsbPropertyPage(item) {Initialize();}
  31. PowerPage(HWND HWndParent, LPCSTR DevName) : UsbPropertyPage(HWndParent, DevName) {Initialize();}
  32. PowerPage(HDEVINFO DeviceInfoSet,
  33. PSP_DEVINFO_DATA DeviceInfoData) :
  34. UsbPropertyPage(DeviceInfoSet, DeviceInfoData) {Initialize();}
  35. HPROPSHEETPAGE Create();
  36. protected:
  37. HWND hLstDevices;
  38. void Refresh();
  39. VOID Initialize();
  40. void OnClickListDevices(NMHDR* pNMHDR, LRESULT* pResult);
  41. void OnSetFocusListDevices(NMHDR* pNMHDR, LRESULT* pResult);
  42. BOOL OnInitDialog();
  43. BOOL OnCommand(INT wNotifyCode, INT wID, HWND hCtl);
  44. BOOL OnNotify(HWND hDlg, INT nID , LPNMHDR pnmh);
  45. void OnNotifyListDevices(HWND hDlg, LPNMHDR pnmh);
  46. };
  47. #endif