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.

263 lines
8.2 KiB

  1. /*++ BUILD Version: 0000 Increment this if a change has global effects
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. commctrl.rh
  5. Abstract:
  6. This module defines the 32-Bit Windows resource codes from commctrl.h.
  7. Revision History:
  8. --*/
  9. #define HDS_HORZ 0x0000
  10. #define HDS_BUTTONS 0x0002
  11. #if (_WIN32_IE >= 0x0300)
  12. #define HDS_HOTTRACK 0x0004
  13. #endif
  14. #define HDS_HIDDEN 0x0008
  15. #if (_WIN32_IE >= 0x0300)
  16. #define HDS_DRAGDROP 0x0040
  17. #define HDS_FULLDRAG 0x0080
  18. #endif
  19. #if (_WIN32_IE >= 0x0500)
  20. #define HDS_FILTERBAR 0x0100
  21. #endif
  22. #if (_WIN32_WINNT >= 0x501)
  23. #define HDS_FLAT 0x0200
  24. #endif
  25. #if (_WIN32_IE >= 0x0400)
  26. #define RBS_TOOLTIPS 0x0100
  27. #define RBS_VARHEIGHT 0x0200
  28. #define RBS_BANDBORDERS 0x0400
  29. #define RBS_FIXEDORDER 0x0800
  30. #define RBS_REGISTERDROP 0x1000
  31. #define RBS_AUTOSIZE 0x2000
  32. #define RBS_VERTICALGRIPPER 0x4000 // this always has the vertical gripper (default for horizontal mode)
  33. #define RBS_DBLCLKTOGGLE 0x8000
  34. #else
  35. #define RBS_TOOLTIPS 0x00000100
  36. #define RBS_VARHEIGHT 0x00000200
  37. #define RBS_BANDBORDERS 0x00000400
  38. #define RBS_FIXEDORDER 0x00000800
  39. #endif // _WIN32_IE >= 0x0400
  40. #define TTS_ALWAYSTIP 0x01
  41. #define TTS_NOPREFIX 0x02
  42. #if (_WIN32_IE >= 0x0500)
  43. #define TTS_NOANIMATE 0x10
  44. #define TTS_NOFADE 0x20
  45. #define TTS_BALLOON 0x40
  46. #define TTS_CLOSE 0x80
  47. #endif
  48. #define SBARS_SIZEGRIP 0x0100
  49. #if (_WIN32_IE >= 0x0500)
  50. #define SBARS_TOOLTIPS 0x0800
  51. #endif
  52. #if (_WIN32_IE >= 0x0400)
  53. // this is a status bar flag, preference to SBARS_TOOLTIPS
  54. #define SBT_TOOLTIPS 0x0800
  55. #endif
  56. #define TBS_AUTOTICKS 0x0001
  57. #define TBS_VERT 0x0002
  58. #define TBS_HORZ 0x0000
  59. #define TBS_TOP 0x0004
  60. #define TBS_BOTTOM 0x0000
  61. #define TBS_LEFT 0x0004
  62. #define TBS_RIGHT 0x0000
  63. #define TBS_BOTH 0x0008
  64. #define TBS_NOTICKS 0x0010
  65. #define TBS_ENABLESELRANGE 0x0020
  66. #define TBS_FIXEDLENGTH 0x0040
  67. #define TBS_NOTHUMB 0x0080
  68. #if (_WIN32_IE >= 0x0300)
  69. #define TBS_TOOLTIPS 0x0100
  70. #endif
  71. #if (_WIN32_IE >= 0x0500)
  72. #define TBS_REVERSED 0x0200 // Accessibility hint: the smaller number (usually the min value) means "high" and the larger number (usually the max value) means "low"
  73. #endif
  74. #if (_WIN32_IE >= 0x0501)
  75. #define TBS_DOWNISLEFT 0x0400 // Down=Left and Up=Right (default is Down=Right and Up=Left)
  76. #endif
  77. #define UDS_WRAP 0x0001
  78. #define UDS_SETBUDDYINT 0x0002
  79. #define UDS_ALIGNRIGHT 0x0004
  80. #define UDS_ALIGNLEFT 0x0008
  81. #define UDS_AUTOBUDDY 0x0010
  82. #define UDS_ARROWKEYS 0x0020
  83. #define UDS_HORZ 0x0040
  84. #define UDS_NOTHOUSANDS 0x0080
  85. #if (_WIN32_IE >= 0x0300)
  86. #define UDS_HOTTRACK 0x0100
  87. #endif
  88. #if (_WIN32_IE >= 0x0300)
  89. #define PBS_SMOOTH 0x01
  90. #define PBS_VERTICAL 0x04
  91. #endif
  92. //====== COMMON CONTROL STYLES ================================================
  93. #define CCS_TOP 0x00000001L
  94. #define CCS_NOMOVEY 0x00000002L
  95. #define CCS_BOTTOM 0x00000003L
  96. #define CCS_NORESIZE 0x00000004L
  97. #define CCS_NOPARENTALIGN 0x00000008L
  98. #define CCS_ADJUSTABLE 0x00000020L
  99. #define CCS_NODIVIDER 0x00000040L
  100. #if (_WIN32_IE >= 0x0300)
  101. #define CCS_VERT 0x00000080L
  102. #define CCS_LEFT (CCS_VERT | CCS_TOP)
  103. #define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)
  104. #define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)
  105. #endif
  106. #define LVS_ICON 0x0000
  107. #define LVS_REPORT 0x0001
  108. #define LVS_SMALLICON 0x0002
  109. #define LVS_LIST 0x0003
  110. #define LVS_TYPEMASK 0x0003
  111. #define LVS_SINGLESEL 0x0004
  112. #define LVS_SHOWSELALWAYS 0x0008
  113. #define LVS_SORTASCENDING 0x0010
  114. #define LVS_SORTDESCENDING 0x0020
  115. #define LVS_SHAREIMAGELISTS 0x0040
  116. #define LVS_NOLABELWRAP 0x0080
  117. #define LVS_AUTOARRANGE 0x0100
  118. #define LVS_EDITLABELS 0x0200
  119. #if (_WIN32_IE >= 0x0300)
  120. #define LVS_OWNERDATA 0x1000
  121. #endif
  122. #define LVS_NOSCROLL 0x2000
  123. #define LVS_TYPESTYLEMASK 0xfc00
  124. #define LVS_ALIGNTOP 0x0000
  125. #define LVS_ALIGNLEFT 0x0800
  126. #define LVS_ALIGNMASK 0x0c00
  127. #define LVS_OWNERDRAWFIXED 0x0400
  128. #define LVS_NOCOLUMNHEADER 0x4000
  129. #define LVS_NOSORTHEADER 0x8000
  130. #define TVS_HASBUTTONS 0x0001
  131. #define TVS_HASLINES 0x0002
  132. #define TVS_LINESATROOT 0x0004
  133. #define TVS_EDITLABELS 0x0008
  134. #define TVS_DISABLEDRAGDROP 0x0010
  135. #define TVS_SHOWSELALWAYS 0x0020
  136. #if (_WIN32_IE >= 0x0300)
  137. #define TVS_RTLREADING 0x0040
  138. #define TVS_NOTOOLTIPS 0x0080
  139. #define TVS_CHECKBOXES 0x0100
  140. #define TVS_TRACKSELECT 0x0200
  141. #if (_WIN32_IE >= 0x0400)
  142. #define TVS_SINGLEEXPAND 0x0400
  143. #define TVS_INFOTIP 0x0800
  144. #define TVS_FULLROWSELECT 0x1000
  145. #define TVS_NOSCROLL 0x2000
  146. #define TVS_NONEVENHEIGHT 0x4000
  147. #endif
  148. #if (_WIN32_IE >= 0x500)
  149. #define TVS_NOHSCROLL 0x8000 // TVS_NOSCROLL overrides this
  150. #endif
  151. #endif
  152. #if (_WIN32_IE >= 0x0300)
  153. #define TCS_SCROLLOPPOSITE 0x0001 // assumes multiline tab
  154. #define TCS_BOTTOM 0x0002
  155. #define TCS_RIGHT 0x0002
  156. #define TCS_MULTISELECT 0x0004 // allow multi-select in button mode
  157. #endif
  158. #if (_WIN32_IE >= 0x0400)
  159. #define TCS_FLATBUTTONS 0x0008
  160. #endif
  161. #define TCS_FORCEICONLEFT 0x0010
  162. #define TCS_FORCELABELLEFT 0x0020
  163. #if (_WIN32_IE >= 0x0300)
  164. #define TCS_HOTTRACK 0x0040
  165. #define TCS_VERTICAL 0x0080
  166. #endif
  167. #define TCS_TABS 0x0000
  168. #define TCS_BUTTONS 0x0100
  169. #define TCS_SINGLELINE 0x0000
  170. #define TCS_MULTILINE 0x0200
  171. #define TCS_RIGHTJUSTIFY 0x0000
  172. #define TCS_FIXEDWIDTH 0x0400
  173. #define TCS_RAGGEDRIGHT 0x0800
  174. #define TCS_FOCUSONBUTTONDOWN 0x1000
  175. #define TCS_OWNERDRAWFIXED 0x2000
  176. #define TCS_TOOLTIPS 0x4000
  177. #define TCS_FOCUSNEVER 0x8000
  178. #define ACS_CENTER 0x0001
  179. #define ACS_TRANSPARENT 0x0002
  180. #define ACS_AUTOPLAY 0x0004
  181. #if (_WIN32_IE >= 0x0300)
  182. #define ACS_TIMER 0x0008 // don't use threads... use timers
  183. #endif
  184. #define MCS_DAYSTATE 0x0001
  185. #define MCS_MULTISELECT 0x0002
  186. #define MCS_WEEKNUMBERS 0x0004
  187. #if (_WIN32_IE >= 0x0400)
  188. #define MCS_NOTODAYCIRCLE 0x0008
  189. #define MCS_NOTODAY 0x0010
  190. #else
  191. #define MCS_NOTODAY 0x0008
  192. #endif
  193. #define DTS_UPDOWN 0x0001 // use UPDOWN instead of MONTHCAL
  194. #define DTS_SHOWNONE 0x0002 // allow a NONE selection
  195. #define DTS_SHORTDATEFORMAT 0x0000 // use the short date format (app must forward WM_WININICHANGE messages)
  196. #define DTS_LONGDATEFORMAT 0x0004 // use the long date format (app must forward WM_WININICHANGE messages)
  197. #if (_WIN32_IE >= 0x500)
  198. #define DTS_SHORTDATECENTURYFORMAT 0x000C// short date format with century (app must forward WM_WININICHANGE messages)
  199. #endif // (_WIN32_IE >= 0x500)
  200. #define DTS_TIMEFORMAT 0x0009 // use the time format (app must forward WM_WININICHANGE messages)
  201. #define DTS_APPCANPARSE 0x0010 // allow user entered strings (app MUST respond to DTN_USERSTRING)
  202. #define DTS_RIGHTALIGN 0x0020 // right-align popup instead of left-align it
  203. #define PGS_VERT 0x00000000
  204. #define PGS_HORZ 0x00000001
  205. #define PGS_AUTOSCROLL 0x00000002
  206. #define PGS_DRAGNDROP 0x00000004
  207. // style definition
  208. #define NFS_EDIT 0x0001
  209. #define NFS_STATIC 0x0002
  210. #define NFS_LISTCOMBO 0x0004
  211. #define NFS_BUTTON 0x0008
  212. #define NFS_ALL 0x0010
  213. #define NFS_USEFONTASSOC 0x0020