home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / commctrl.rh < prev    next >
Text File  |  1998-04-25  |  7KB  |  239 lines

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