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.

92 lines
4.1 KiB

  1. /*****************************************************************************
  2. * Copyright (C) 1995-1998 Microsoft Corporation. All Rights Reserved.
  3. *
  4. * hwtab.h
  5. *
  6. * Hardware tab
  7. *
  8. *****************************************************************************/
  9. // Hardware Tab Resources
  10. //
  11. // The version of the template in the rc file is the
  12. // most compact form the dialog will take.
  13. // When inserted into a container, we will expand the dialog to
  14. // fill the available space.
  15. //
  16. // Layout diagram. All units are in dlu.
  17. //
  18. // 7 dlu 7 dlu
  19. // v v
  20. // +---------------------------------------------------+
  21. // | | < 7 dlu gap
  22. // | Devices: | < 10 dlu tall
  23. // | +-----------------------------------------------+ | < 30 dlu tall
  24. // | | (listview contents) | |
  25. // | +-----------------------------------------------+ |
  26. // | | < 10 dlu gap
  27. // | +- Device Properties ---------------------------+ | < 12 dlu tall
  28. // | | Manufacturer | | < 12 dlu tall
  29. // | | Hardware Revision | | < 12 dlu tall
  30. // | | Location | | < 12 dlu tall
  31. // | | Device Status | | < 36 dlu tall
  32. // | | | |
  33. // | |^ | |
  34. // | |7 dlu | |
  35. // | | 4 dlu 4| |
  36. // | | v v| |
  37. // | | [ Troubleshoot ] [ Properties ] | | < 14 dlu tall
  38. // | | | | < 7 dlu gap
  39. // | +-----------------------------------------------+ |
  40. // | | < 7 dlu gap
  41. // +---------------------------------------------------+
  42. // | |
  43. // |<- 50 dlu ->|
  44. //
  45. // Extra horizontal space is added to the listview and groupbox.
  46. // Extra vertical space is split between the listview and groupbox
  47. // in a ratio determined by the _dwViewMode.
  48. // The groupbox space is all given to the "Device Status" section.
  49. //
  50. // The device property text remains pinned to the upper left corner
  51. // of the groupbox.
  52. //
  53. // The troubleshoot and propeties buttons remain pinned to the
  54. // lower right corner of the groupbox.
  55. // Relative size of TreeView in Hardware Tab
  56. //
  57. #define HWTAB_LARGELIST 1
  58. #define HWTAB_MEDLIST 2
  59. #define HWTAB_SMALLLIST 3
  60. //
  61. // Controls on the Hardware Tab that you might want to change the text of.
  62. //
  63. #define IDC_HWTAB_LVSTATIC 1411 // "Devices:"
  64. #define IDC_HWTAB_GROUPBOX 1413 // "Device Properties"
  65. // Functions to create your hardware tab page based on DEVCLASS guids
  66. //
  67. STDAPI_(HWND) DeviceCreateHardwarePage(HWND hwndParent, const GUID *pguid);
  68. STDAPI_(HWND) DeviceCreateHardwarePageEx(HWND hwndParent, const GUID *pguid, int iNumClass, DWORD dwViewMode);
  69. // This notification is used for listview filtering
  70. //
  71. // We use the non-typedef'd names of these so callers aren't required to
  72. // have included <setupapi.h> first.
  73. //
  74. typedef struct NMHWTAB
  75. {
  76. NMHDR nm; // Notify info
  77. PVOID hdev; // Device information handle (HDEVINFO)
  78. struct _SP_DEVINFO_DATA *pdinf; // Device information
  79. BOOL fHidden; // OnNotify true if device is to be hidden, Can be changed to hide/show individual devices
  80. } NMHWTAB, *LPNMHWTAB;
  81. // ListView Device Filtering Messages
  82. //
  83. #define HWN_FIRST 100
  84. #define HWN_FILTERITEM HWN_FIRST
  85. #define HWN_SELECTIONCHANGED (HWN_FIRST + 1)