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.

114 lines
2.1 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. Clb.h
  5. Abstract:
  6. Author:
  7. David J. Gilman (davegi) 05-Feb-1993
  8. Environment:
  9. User Mode
  10. --*/
  11. #if ! defined( _CLB_ )
  12. #define _CLB_
  13. #ifndef _REGEDT32_
  14. #include "wintools.h"
  15. #endif // _REGEDT32_
  16. #include <commctrl.h>
  17. //
  18. // Class name for the CLB.
  19. //
  20. #define CLB_CLASS_NAME TEXT( "ColumnListBox" )
  21. //
  22. // Clb Styles.
  23. //
  24. #define CLBS_NOTIFY LBS_NOTIFY
  25. #define CLBS_SORT LBS_SORT
  26. #define CLBS_DISABLENOSCROLL LBS_DISABLENOSCROLL
  27. #define CLBS_VSCROLL WS_VSCROLL
  28. #define CLBS_BORDER WS_BORDER
  29. #define CLBS_POPOUT_HEADINGS SBT_POPOUT
  30. #define CLBS_SPRINGY_COLUMNS 0
  31. #define CLBS_STANDARD ( \
  32. 0 \
  33. | CLBS_NOTIFY \
  34. | CLBS_SORT \
  35. | CLBS_VSCROLL \
  36. | CLBS_BORDER \
  37. )
  38. //
  39. // Clb string formats.
  40. //
  41. typedef
  42. enum
  43. _CLB_FORMAT {
  44. CLB_LEFT = TA_LEFT,
  45. CLB_RIGHT = TA_RIGHT
  46. } CLB_FORMAT;
  47. //
  48. // Clb string object.
  49. //
  50. typedef
  51. struct
  52. _CLB_STRING {
  53. LPTSTR String;
  54. DWORD Length;
  55. CLB_FORMAT Format;
  56. LPVOID Data;
  57. } CLB_STRING, *LPCLB_STRING;
  58. //
  59. // Clb row object.
  60. //
  61. typedef
  62. struct
  63. _CLB_ROW {
  64. DWORD Count;
  65. LPCLB_STRING Strings;
  66. LPVOID Data;
  67. } CLB_ROW, *LPCLB_ROW;
  68. BOOL
  69. ClbAddData(
  70. IN HWND hWnd,
  71. IN int ControlId,
  72. IN LPCLB_ROW ClbRow
  73. );
  74. BOOL
  75. ClbSetColumnWidths(
  76. IN HWND hWnd,
  77. IN int ControlId,
  78. IN LPDWORD Widths
  79. );
  80. #endif // _CLB_