Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
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.

commctrl.py 45KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551
  1. # Generated by h2py from COMMCTRL.H
  2. WM_USER = 1024
  3. ICC_LISTVIEW_CLASSES = 1 # listview, header
  4. ICC_TREEVIEW_CLASSES = 2 # treeview, tooltips
  5. ICC_BAR_CLASSES = 4 # toolbar, statusbar, trackbar, tooltips
  6. ICC_TAB_CLASSES = 8 # tab, tooltips
  7. ICC_UPDOWN_CLASS = 16 # updown
  8. ICC_PROGRESS_CLASS = 32 # progress
  9. ICC_HOTKEY_CLASS = 64 # hotkey
  10. ICC_ANIMATE_CLASS = 128 # animate
  11. ICC_WIN95_CLASSES = 255
  12. ICC_DATE_CLASSES = 256 # month picker, date picker, time picker, updown
  13. ICC_USEREX_CLASSES = 512 # comboex
  14. ICC_COOL_CLASSES = 1024 # rebar (coolbar) control
  15. ICC_INTERNET_CLASSES = 2048
  16. ICC_PAGESCROLLER_CLASS = 4096 # page scroller
  17. ICC_NATIVEFNTCTL_CLASS = 8192 # native font control
  18. ODT_HEADER = 100
  19. ODT_TAB = 101
  20. ODT_LISTVIEW = 102
  21. PY_0U = 0
  22. NM_FIRST = PY_0U # generic to all controls
  23. NM_LAST = PY_0U - 99
  24. LVN_FIRST = PY_0U - 100 # listview
  25. LVN_LAST = PY_0U - 199
  26. HDN_FIRST = PY_0U - 300 # header
  27. HDN_LAST = PY_0U - 399
  28. TVN_FIRST = PY_0U - 400 # treeview
  29. TVN_LAST = PY_0U - 499
  30. TTN_FIRST = PY_0U - 520 # tooltips
  31. TTN_LAST = PY_0U - 549
  32. TCN_FIRST = PY_0U - 550 # tab control
  33. TCN_LAST = PY_0U - 580
  34. CDN_FIRST = PY_0U - 601 # common dialog (new)
  35. CDN_LAST = PY_0U - 699
  36. TBN_FIRST = PY_0U - 700 # toolbar
  37. TBN_LAST = PY_0U - 720
  38. UDN_FIRST = PY_0U - 721 # updown
  39. UDN_LAST = PY_0U - 740
  40. MCN_FIRST = PY_0U - 750 # monthcal
  41. MCN_LAST = PY_0U - 759
  42. DTN_FIRST = PY_0U - 760 # datetimepick
  43. DTN_LAST = PY_0U - 799
  44. CBEN_FIRST = PY_0U - 800 # combo box ex
  45. CBEN_LAST = PY_0U - 830
  46. RBN_FIRST = PY_0U - 831 # rebar
  47. RBN_LAST = PY_0U - 859
  48. IPN_FIRST = PY_0U - 860 # internet address
  49. IPN_LAST = PY_0U - 879 # internet address
  50. SBN_FIRST = PY_0U - 880 # status bar
  51. SBN_LAST = PY_0U - 899
  52. PGN_FIRST = PY_0U - 900 # Pager Control
  53. PGN_LAST = PY_0U - 950
  54. LVM_FIRST = 4096 # ListView messages
  55. TV_FIRST = 4352 # TreeView messages
  56. HDM_FIRST = 4608 # Header messages
  57. TCM_FIRST = 4864 # Tab control messages
  58. PGM_FIRST = 5120 # Pager control messages
  59. CCM_FIRST = 8192 # Common control shared messages
  60. CCM_SETBKCOLOR = CCM_FIRST + 1 # lParam is bkColor
  61. CCM_SETCOLORSCHEME = CCM_FIRST + 2 # lParam is color scheme
  62. CCM_GETCOLORSCHEME = CCM_FIRST + 3 # fills in COLORSCHEME pointed to by lParam
  63. CCM_GETDROPTARGET = CCM_FIRST + 4
  64. CCM_SETUNICODEFORMAT = CCM_FIRST + 5
  65. CCM_GETUNICODEFORMAT = CCM_FIRST + 6
  66. INFOTIPSIZE = 1024
  67. NM_OUTOFMEMORY = NM_FIRST - 1
  68. NM_CLICK = NM_FIRST - 2 # uses NMCLICK struct
  69. NM_DBLCLK = NM_FIRST - 3
  70. NM_RETURN = NM_FIRST - 4
  71. NM_RCLICK = NM_FIRST - 5 # uses NMCLICK struct
  72. NM_RDBLCLK = NM_FIRST - 6
  73. NM_SETFOCUS = NM_FIRST - 7
  74. NM_KILLFOCUS = NM_FIRST - 8
  75. NM_CUSTOMDRAW = NM_FIRST - 12
  76. NM_HOVER = NM_FIRST - 13
  77. NM_NCHITTEST = NM_FIRST - 14 # uses NMMOUSE struct
  78. NM_KEYDOWN = NM_FIRST - 15 # uses NMKEY struct
  79. NM_RELEASEDCAPTURE = NM_FIRST - 16
  80. NM_SETCURSOR = NM_FIRST - 17 # uses NMMOUSE struct
  81. NM_CHAR = NM_FIRST - 18 # uses NMCHAR struct
  82. MSGF_COMMCTRL_BEGINDRAG = 16896
  83. MSGF_COMMCTRL_SIZEHEADER = 16897
  84. MSGF_COMMCTRL_DRAGSELECT = 16898
  85. MSGF_COMMCTRL_TOOLBARCUST = 16899
  86. CDRF_DODEFAULT = 0
  87. CDRF_NEWFONT = 2
  88. CDRF_SKIPDEFAULT = 4
  89. CDRF_NOTIFYPOSTPAINT = 16
  90. CDRF_NOTIFYITEMDRAW = 32
  91. CDRF_NOTIFYSUBITEMDRAW = 32 # flags are the same, we can distinguish by context
  92. CDRF_NOTIFYPOSTERASE = 64
  93. CDDS_PREPAINT = 1
  94. CDDS_POSTPAINT = 2
  95. CDDS_PREERASE = 3
  96. CDDS_POSTERASE = 4
  97. CDDS_ITEM = 65536
  98. CDDS_ITEMPREPAINT = CDDS_ITEM | CDDS_PREPAINT
  99. CDDS_ITEMPOSTPAINT = CDDS_ITEM | CDDS_POSTPAINT
  100. CDDS_ITEMPREERASE = CDDS_ITEM | CDDS_PREERASE
  101. CDDS_ITEMPOSTERASE = CDDS_ITEM | CDDS_POSTERASE
  102. CDDS_SUBITEM = 131072
  103. CDIS_SELECTED = 1
  104. CDIS_GRAYED = 2
  105. CDIS_DISABLED = 4
  106. CDIS_CHECKED = 8
  107. CDIS_FOCUS = 16
  108. CDIS_DEFAULT = 32
  109. CDIS_HOT = 64
  110. CDIS_MARKED = 128
  111. CDIS_INDETERMINATE = 256
  112. CLR_NONE = -1 # 0xFFFFFFFFL
  113. CLR_DEFAULT = -16777216 # 0xFF000000L
  114. ILC_MASK = 1
  115. ILC_COLOR = 0
  116. ILC_COLORDDB = 254
  117. ILC_COLOR4 = 4
  118. ILC_COLOR8 = 8
  119. ILC_COLOR16 = 16
  120. ILC_COLOR24 = 24
  121. ILC_COLOR32 = 32
  122. ILC_PALETTE = 2048 # (not implemented)
  123. ILD_NORMAL = 0
  124. ILD_TRANSPARENT = 1
  125. ILD_MASK = 16
  126. ILD_IMAGE = 32
  127. ILD_ROP = 64
  128. ILD_BLEND25 = 2
  129. ILD_BLEND50 = 4
  130. ILD_OVERLAYMASK = 3840
  131. ILD_SELECTED = ILD_BLEND50
  132. ILD_FOCUS = ILD_BLEND25
  133. ILD_BLEND = ILD_BLEND50
  134. CLR_HILIGHT = CLR_DEFAULT
  135. ILCF_MOVE = 0
  136. ILCF_SWAP = 1
  137. WC_HEADERA = "SysHeader32"
  138. WC_HEADER = WC_HEADERA
  139. HDS_HORZ = 0
  140. HDS_BUTTONS = 2
  141. HDS_HOTTRACK = 4
  142. HDS_HIDDEN = 8
  143. HDS_DRAGDROP = 64
  144. HDS_FULLDRAG = 128
  145. HDI_WIDTH = 1
  146. HDI_HEIGHT = HDI_WIDTH
  147. HDI_TEXT = 2
  148. HDI_FORMAT = 4
  149. HDI_LPARAM = 8
  150. HDI_BITMAP = 16
  151. HDI_IMAGE = 32
  152. HDI_DI_SETITEM = 64
  153. HDI_ORDER = 128
  154. HDF_LEFT = 0
  155. HDF_RIGHT = 1
  156. HDF_CENTER = 2
  157. HDF_JUSTIFYMASK = 3
  158. HDF_RTLREADING = 4
  159. HDF_OWNERDRAW = 32768
  160. HDF_STRING = 16384
  161. HDF_BITMAP = 8192
  162. HDF_BITMAP_ON_RIGHT = 4096
  163. HDF_IMAGE = 2048
  164. HDM_GETITEMCOUNT = HDM_FIRST + 0
  165. HDM_INSERTITEMA = HDM_FIRST + 1
  166. HDM_INSERTITEMW = HDM_FIRST + 10
  167. HDM_INSERTITEM = HDM_INSERTITEMA
  168. HDM_DELETEITEM = HDM_FIRST + 2
  169. HDM_GETITEMA = HDM_FIRST + 3
  170. HDM_GETITEMW = HDM_FIRST + 11
  171. HDM_GETITEM = HDM_GETITEMA
  172. HDM_SETITEMA = HDM_FIRST + 4
  173. HDM_SETITEMW = HDM_FIRST + 12
  174. HDM_SETITEM = HDM_SETITEMA
  175. HDM_LAYOUT = HDM_FIRST + 5
  176. HHT_NOWHERE = 1
  177. HHT_ONHEADER = 2
  178. HHT_ONDIVIDER = 4
  179. HHT_ONDIVOPEN = 8
  180. HHT_ABOVE = 256
  181. HHT_BELOW = 512
  182. HHT_TORIGHT = 1024
  183. HHT_TOLEFT = 2048
  184. HDM_HITTEST = HDM_FIRST + 6
  185. HDM_GETITEMRECT = HDM_FIRST + 7
  186. HDM_SETIMAGELIST = HDM_FIRST + 8
  187. HDM_GETIMAGELIST = HDM_FIRST + 9
  188. HDM_ORDERTOINDEX = HDM_FIRST + 15
  189. HDM_CREATEDRAGIMAGE = HDM_FIRST + 16 # wparam = which item (by index)
  190. HDM_GETORDERARRAY = HDM_FIRST + 17
  191. HDM_SETORDERARRAY = HDM_FIRST + 18
  192. HDM_SETHOTDIVIDER = HDM_FIRST + 19
  193. HDM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  194. HDM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  195. HDN_ITEMCHANGINGA = HDN_FIRST - 0
  196. HDN_ITEMCHANGINGW = HDN_FIRST - 20
  197. HDN_ITEMCHANGEDA = HDN_FIRST - 1
  198. HDN_ITEMCHANGEDW = HDN_FIRST - 21
  199. HDN_ITEMCLICKA = HDN_FIRST - 2
  200. HDN_ITEMCLICKW = HDN_FIRST - 22
  201. HDN_ITEMDBLCLICKA = HDN_FIRST - 3
  202. HDN_ITEMDBLCLICKW = HDN_FIRST - 23
  203. HDN_DIVIDERDBLCLICKA = HDN_FIRST - 5
  204. HDN_DIVIDERDBLCLICKW = HDN_FIRST - 25
  205. HDN_BEGINTRACKA = HDN_FIRST - 6
  206. HDN_BEGINTRACKW = HDN_FIRST - 26
  207. HDN_ENDTRACKA = HDN_FIRST - 7
  208. HDN_ENDTRACKW = HDN_FIRST - 27
  209. HDN_TRACKA = HDN_FIRST - 8
  210. HDN_TRACKW = HDN_FIRST - 28
  211. HDN_GETDISPINFOA = HDN_FIRST - 9
  212. HDN_GETDISPINFOW = HDN_FIRST - 29
  213. HDN_BEGINDRAG = HDN_FIRST - 10
  214. HDN_ENDDRAG = HDN_FIRST - 11
  215. HDN_ITEMCHANGING = HDN_ITEMCHANGINGA
  216. HDN_ITEMCHANGED = HDN_ITEMCHANGEDA
  217. HDN_ITEMCLICK = HDN_ITEMCLICKA
  218. HDN_ITEMDBLCLICK = HDN_ITEMDBLCLICKA
  219. HDN_DIVIDERDBLCLICK = HDN_DIVIDERDBLCLICKA
  220. HDN_BEGINTRACK = HDN_BEGINTRACKA
  221. HDN_ENDTRACK = HDN_ENDTRACKA
  222. HDN_TRACK = HDN_TRACKA
  223. HDN_GETDISPINFO = HDN_GETDISPINFOA
  224. TOOLBARCLASSNAMEA = "ToolbarWindow32"
  225. TOOLBARCLASSNAME = TOOLBARCLASSNAMEA
  226. CMB_MASKED = 2
  227. TBSTATE_CHECKED = 1
  228. TBSTATE_PRESSED = 2
  229. TBSTATE_ENABLED = 4
  230. TBSTATE_HIDDEN = 8
  231. TBSTATE_INDETERMINATE = 16
  232. TBSTATE_WRAP = 32
  233. TBSTATE_ELLIPSES = 64
  234. TBSTATE_MARKED = 128
  235. TBSTYLE_BUTTON = 0
  236. TBSTYLE_SEP = 1
  237. TBSTYLE_CHECK = 2
  238. TBSTYLE_GROUP = 4
  239. TBSTYLE_CHECKGROUP = TBSTYLE_GROUP | TBSTYLE_CHECK
  240. TBSTYLE_DROPDOWN = 8
  241. TBSTYLE_AUTOSIZE = 16 # automatically calculate the cx of the button
  242. TBSTYLE_NOPREFIX = 32 # if this button should not have accel prefix
  243. TBSTYLE_TOOLTIPS = 256
  244. TBSTYLE_WRAPABLE = 512
  245. TBSTYLE_ALTDRAG = 1024
  246. TBSTYLE_FLAT = 2048
  247. TBSTYLE_LIST = 4096
  248. TBSTYLE_CUSTOMERASE = 8192
  249. TBSTYLE_REGISTERDROP = 16384
  250. TBSTYLE_TRANSPARENT = 32768
  251. TBSTYLE_EX_DRAWDDARROWS = 1
  252. BTNS_BUTTON = TBSTYLE_BUTTON
  253. BTNS_SEP = TBSTYLE_SEP # 0x0001
  254. BTNS_CHECK = TBSTYLE_CHECK # 0x0002
  255. BTNS_GROUP = TBSTYLE_GROUP # 0x0004
  256. BTNS_CHECKGROUP = TBSTYLE_CHECKGROUP # (TBSTYLE_GROUP | TBSTYLE_CHECK)
  257. BTNS_DROPDOWN = TBSTYLE_DROPDOWN # 0x0008
  258. BTNS_AUTOSIZE = TBSTYLE_AUTOSIZE # 0x0010; automatically calculate the cx of the button
  259. BTNS_NOPREFIX = TBSTYLE_NOPREFIX # 0x0020; this button should not have accel prefix
  260. BTNS_SHOWTEXT = (
  261. 64 # 0x0040 // ignored unless TBSTYLE_EX_MIXEDBUTTONS is set
  262. )
  263. BTNS_WHOLEDROPDOWN = (
  264. 128 # 0x0080 // draw drop-down arrow, but without split arrow section
  265. )
  266. TBCDRF_NOEDGES = 65536 # Don't draw button edges
  267. TBCDRF_HILITEHOTTRACK = 131072 # Use color of the button bk when hottracked
  268. TBCDRF_NOOFFSET = 262144 # Don't offset button if pressed
  269. TBCDRF_NOMARK = 524288 # Don't draw default highlight of image/text for TBSTATE_MARKED
  270. TBCDRF_NOETCHEDEFFECT = 1048576 # Don't draw etched effect for disabled items
  271. TB_ENABLEBUTTON = WM_USER + 1
  272. TB_CHECKBUTTON = WM_USER + 2
  273. TB_PRESSBUTTON = WM_USER + 3
  274. TB_HIDEBUTTON = WM_USER + 4
  275. TB_INDETERMINATE = WM_USER + 5
  276. TB_MARKBUTTON = WM_USER + 6
  277. TB_ISBUTTONENABLED = WM_USER + 9
  278. TB_ISBUTTONCHECKED = WM_USER + 10
  279. TB_ISBUTTONPRESSED = WM_USER + 11
  280. TB_ISBUTTONHIDDEN = WM_USER + 12
  281. TB_ISBUTTONINDETERMINATE = WM_USER + 13
  282. TB_ISBUTTONHIGHLIGHTED = WM_USER + 14
  283. TB_SETSTATE = WM_USER + 17
  284. TB_GETSTATE = WM_USER + 18
  285. TB_ADDBITMAP = WM_USER + 19
  286. HINST_COMMCTRL = -1
  287. IDB_STD_SMALL_COLOR = 0
  288. IDB_STD_LARGE_COLOR = 1
  289. IDB_VIEW_SMALL_COLOR = 4
  290. IDB_VIEW_LARGE_COLOR = 5
  291. IDB_HIST_SMALL_COLOR = 8
  292. IDB_HIST_LARGE_COLOR = 9
  293. STD_CUT = 0
  294. STD_COPY = 1
  295. STD_PASTE = 2
  296. STD_UNDO = 3
  297. STD_REDOW = 4
  298. STD_DELETE = 5
  299. STD_FILENEW = 6
  300. STD_FILEOPEN = 7
  301. STD_FILESAVE = 8
  302. STD_PRINTPRE = 9
  303. STD_PROPERTIES = 10
  304. STD_HELP = 11
  305. STD_FIND = 12
  306. STD_REPLACE = 13
  307. STD_PRINT = 14
  308. VIEW_LARGEICONS = 0
  309. VIEW_SMALLICONS = 1
  310. VIEW_LIST = 2
  311. VIEW_DETAILS = 3
  312. VIEW_SORTNAME = 4
  313. VIEW_SORTSIZE = 5
  314. VIEW_SORTDATE = 6
  315. VIEW_SORTTYPE = 7
  316. VIEW_PARENTFOLDER = 8
  317. VIEW_NETCONNECT = 9
  318. VIEW_NETDISCONNECT = 10
  319. VIEW_NEWFOLDER = 11
  320. VIEW_VIEWMENU = 12
  321. HIST_BACK = 0
  322. HIST_FORWARD = 1
  323. HIST_FAVORITES = 2
  324. HIST_ADDTOFAVORITES = 3
  325. HIST_VIEWTREE = 4
  326. TB_ADDBUTTONSA = WM_USER + 20
  327. TB_INSERTBUTTONA = WM_USER + 21
  328. TB_ADDBUTTONS = WM_USER + 20
  329. TB_INSERTBUTTON = WM_USER + 21
  330. TB_DELETEBUTTON = WM_USER + 22
  331. TB_GETBUTTON = WM_USER + 23
  332. TB_BUTTONCOUNT = WM_USER + 24
  333. TB_COMMANDTOINDEX = WM_USER + 25
  334. TB_SAVERESTOREA = WM_USER + 26
  335. TB_SAVERESTOREW = WM_USER + 76
  336. TB_CUSTOMIZE = WM_USER + 27
  337. TB_ADDSTRINGA = WM_USER + 28
  338. TB_ADDSTRINGW = WM_USER + 77
  339. TB_GETITEMRECT = WM_USER + 29
  340. TB_BUTTONSTRUCTSIZE = WM_USER + 30
  341. TB_SETBUTTONSIZE = WM_USER + 31
  342. TB_SETBITMAPSIZE = WM_USER + 32
  343. TB_AUTOSIZE = WM_USER + 33
  344. TB_GETTOOLTIPS = WM_USER + 35
  345. TB_SETTOOLTIPS = WM_USER + 36
  346. TB_SETPARENT = WM_USER + 37
  347. TB_SETROWS = WM_USER + 39
  348. TB_GETROWS = WM_USER + 40
  349. TB_SETCMDID = WM_USER + 42
  350. TB_CHANGEBITMAP = WM_USER + 43
  351. TB_GETBITMAP = WM_USER + 44
  352. TB_GETBUTTONTEXTA = WM_USER + 45
  353. TB_GETBUTTONTEXTW = WM_USER + 75
  354. TB_REPLACEBITMAP = WM_USER + 46
  355. TB_SETINDENT = WM_USER + 47
  356. TB_SETIMAGELIST = WM_USER + 48
  357. TB_GETIMAGELIST = WM_USER + 49
  358. TB_LOADIMAGES = WM_USER + 50
  359. TB_GETRECT = WM_USER + 51 # wParam is the Cmd instead of index
  360. TB_SETHOTIMAGELIST = WM_USER + 52
  361. TB_GETHOTIMAGELIST = WM_USER + 53
  362. TB_SETDISABLEDIMAGELIST = WM_USER + 54
  363. TB_GETDISABLEDIMAGELIST = WM_USER + 55
  364. TB_SETSTYLE = WM_USER + 56
  365. TB_GETSTYLE = WM_USER + 57
  366. TB_GETBUTTONSIZE = WM_USER + 58
  367. TB_SETBUTTONWIDTH = WM_USER + 59
  368. TB_SETMAXTEXTROWS = WM_USER + 60
  369. TB_GETTEXTROWS = WM_USER + 61
  370. TB_GETBUTTONTEXT = TB_GETBUTTONTEXTA
  371. TB_SAVERESTORE = TB_SAVERESTOREA
  372. TB_ADDSTRING = TB_ADDSTRINGA
  373. TB_GETOBJECT = WM_USER + 62 # wParam == IID, lParam void **ppv
  374. TB_GETHOTITEM = WM_USER + 71
  375. TB_SETHOTITEM = WM_USER + 72 # wParam == iHotItem
  376. TB_SETANCHORHIGHLIGHT = WM_USER + 73 # wParam == TRUE/FALSE
  377. TB_GETANCHORHIGHLIGHT = WM_USER + 74
  378. TB_MAPACCELERATORA = WM_USER + 78 # wParam == ch, lParam int * pidBtn
  379. TBIMHT_AFTER = 1 # TRUE = insert After iButton, otherwise before
  380. TBIMHT_BACKGROUND = 2 # TRUE iff missed buttons completely
  381. TB_GETINSERTMARK = WM_USER + 79 # lParam == LPTBINSERTMARK
  382. TB_SETINSERTMARK = WM_USER + 80 # lParam == LPTBINSERTMARK
  383. TB_INSERTMARKHITTEST = WM_USER + 81 # wParam == LPPOINT lParam == LPTBINSERTMARK
  384. TB_MOVEBUTTON = WM_USER + 82
  385. TB_GETMAXSIZE = WM_USER + 83 # lParam == LPSIZE
  386. TB_SETEXTENDEDSTYLE = WM_USER + 84 # For TBSTYLE_EX_*
  387. TB_GETEXTENDEDSTYLE = WM_USER + 85 # For TBSTYLE_EX_*
  388. TB_GETPADDING = WM_USER + 86
  389. TB_SETPADDING = WM_USER + 87
  390. TB_SETINSERTMARKCOLOR = WM_USER + 88
  391. TB_GETINSERTMARKCOLOR = WM_USER + 89
  392. TB_SETCOLORSCHEME = CCM_SETCOLORSCHEME # lParam is color scheme
  393. TB_GETCOLORSCHEME = CCM_GETCOLORSCHEME # fills in COLORSCHEME pointed to by lParam
  394. TB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  395. TB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  396. TB_MAPACCELERATORW = WM_USER + 90 # wParam == ch, lParam int * pidBtn
  397. TB_MAPACCELERATOR = TB_MAPACCELERATORA
  398. TBBF_LARGE = 1
  399. TB_GETBITMAPFLAGS = WM_USER + 41
  400. TBIF_IMAGE = 1
  401. TBIF_TEXT = 2
  402. TBIF_STATE = 4
  403. TBIF_STYLE = 8
  404. TBIF_LPARAM = 16
  405. TBIF_COMMAND = 32
  406. TBIF_SIZE = 64
  407. TB_GETBUTTONINFOW = WM_USER + 63
  408. TB_SETBUTTONINFOW = WM_USER + 64
  409. TB_GETBUTTONINFOA = WM_USER + 65
  410. TB_SETBUTTONINFOA = WM_USER + 66
  411. TB_INSERTBUTTONW = WM_USER + 67
  412. TB_ADDBUTTONSW = WM_USER + 68
  413. TB_HITTEST = WM_USER + 69
  414. TB_SETDRAWTEXTFLAGS = WM_USER + 70 # wParam == mask lParam == bit values
  415. TBN_GETBUTTONINFOA = TBN_FIRST - 0
  416. TBN_GETBUTTONINFOW = TBN_FIRST - 20
  417. TBN_BEGINDRAG = TBN_FIRST - 1
  418. TBN_ENDDRAG = TBN_FIRST - 2
  419. TBN_BEGINADJUST = TBN_FIRST - 3
  420. TBN_ENDADJUST = TBN_FIRST - 4
  421. TBN_RESET = TBN_FIRST - 5
  422. TBN_QUERYINSERT = TBN_FIRST - 6
  423. TBN_QUERYDELETE = TBN_FIRST - 7
  424. TBN_TOOLBARCHANGE = TBN_FIRST - 8
  425. TBN_CUSTHELP = TBN_FIRST - 9
  426. TBN_DROPDOWN = TBN_FIRST - 10
  427. TBN_GETOBJECT = TBN_FIRST - 12
  428. HICF_OTHER = 0
  429. HICF_MOUSE = 1 # Triggered by mouse
  430. HICF_ARROWKEYS = 2 # Triggered by arrow keys
  431. HICF_ACCELERATOR = 4 # Triggered by accelerator
  432. HICF_DUPACCEL = 8 # This accelerator is not unique
  433. HICF_ENTERING = 16 # idOld is invalid
  434. HICF_LEAVING = 32 # idNew is invalid
  435. HICF_RESELECT = 64 # hot item reselected
  436. TBN_HOTITEMCHANGE = TBN_FIRST - 13
  437. TBN_DRAGOUT = (
  438. TBN_FIRST - 14
  439. ) # this is sent when the user clicks down on a button then drags off the button
  440. TBN_DELETINGBUTTON = TBN_FIRST - 15 # uses TBNOTIFY
  441. TBN_GETDISPINFOA = (
  442. TBN_FIRST - 16
  443. ) # This is sent when the toolbar needs some display information
  444. TBN_GETDISPINFOW = (
  445. TBN_FIRST - 17
  446. ) # This is sent when the toolbar needs some display information
  447. TBN_GETINFOTIPA = TBN_FIRST - 18
  448. TBN_GETINFOTIPW = TBN_FIRST - 19
  449. TBN_GETINFOTIP = TBN_GETINFOTIPA
  450. TBNF_IMAGE = 1
  451. TBNF_TEXT = 2
  452. TBNF_DI_SETITEM = 268435456
  453. TBN_GETDISPINFO = TBN_GETDISPINFOA
  454. TBDDRET_DEFAULT = 0
  455. TBDDRET_NODEFAULT = 1
  456. TBDDRET_TREATPRESSED = 2 # Treat as a standard press button
  457. TBN_GETBUTTONINFO = TBN_GETBUTTONINFOA
  458. REBARCLASSNAMEA = "ReBarWindow32"
  459. REBARCLASSNAME = REBARCLASSNAMEA
  460. RBIM_IMAGELIST = 1
  461. RBS_TOOLTIPS = 256
  462. RBS_VARHEIGHT = 512
  463. RBS_BANDBORDERS = 1024
  464. RBS_FIXEDORDER = 2048
  465. RBS_REGISTERDROP = 4096
  466. RBS_AUTOSIZE = 8192
  467. RBS_VERTICALGRIPPER = (
  468. 16384 # this always has the vertical gripper (default for horizontal mode)
  469. )
  470. RBS_DBLCLKTOGGLE = 32768
  471. RBBS_BREAK = 1 # break to new line
  472. RBBS_FIXEDSIZE = 2 # band can't be sized
  473. RBBS_CHILDEDGE = 4 # edge around top & bottom of child window
  474. RBBS_HIDDEN = 8 # don't show
  475. RBBS_NOVERT = 16 # don't show when vertical
  476. RBBS_FIXEDBMP = 32 # bitmap doesn't move during band resize
  477. RBBS_VARIABLEHEIGHT = 64 # allow autosizing of this child vertically
  478. RBBS_GRIPPERALWAYS = 128 # always show the gripper
  479. RBBS_NOGRIPPER = 256 # never show the gripper
  480. RBBIM_STYLE = 1
  481. RBBIM_COLORS = 2
  482. RBBIM_TEXT = 4
  483. RBBIM_IMAGE = 8
  484. RBBIM_CHILD = 16
  485. RBBIM_CHILDSIZE = 32
  486. RBBIM_SIZE = 64
  487. RBBIM_BACKGROUND = 128
  488. RBBIM_ID = 256
  489. RBBIM_IDEALSIZE = 512
  490. RBBIM_LPARAM = 1024
  491. RB_INSERTBANDA = WM_USER + 1
  492. RB_DELETEBAND = WM_USER + 2
  493. RB_GETBARINFO = WM_USER + 3
  494. RB_SETBARINFO = WM_USER + 4
  495. RB_SETBANDINFOA = WM_USER + 6
  496. RB_SETPARENT = WM_USER + 7
  497. RB_HITTEST = WM_USER + 8
  498. RB_GETRECT = WM_USER + 9
  499. RB_INSERTBANDW = WM_USER + 10
  500. RB_SETBANDINFOW = WM_USER + 11
  501. RB_GETBANDCOUNT = WM_USER + 12
  502. RB_GETROWCOUNT = WM_USER + 13
  503. RB_GETROWHEIGHT = WM_USER + 14
  504. RB_IDTOINDEX = WM_USER + 16 # wParam == id
  505. RB_GETTOOLTIPS = WM_USER + 17
  506. RB_SETTOOLTIPS = WM_USER + 18
  507. RB_SETBKCOLOR = WM_USER + 19 # sets the default BK color
  508. RB_GETBKCOLOR = WM_USER + 20 # defaults to CLR_NONE
  509. RB_SETTEXTCOLOR = WM_USER + 21
  510. RB_GETTEXTCOLOR = WM_USER + 22 # defaults to 0x00000000
  511. RB_SIZETORECT = (
  512. WM_USER + 23
  513. ) # resize the rebar/break bands and such to this rect (lparam)
  514. RB_SETCOLORSCHEME = CCM_SETCOLORSCHEME # lParam is color scheme
  515. RB_GETCOLORSCHEME = CCM_GETCOLORSCHEME # fills in COLORSCHEME pointed to by lParam
  516. RB_INSERTBAND = RB_INSERTBANDA
  517. RB_SETBANDINFO = RB_SETBANDINFOA
  518. RB_BEGINDRAG = WM_USER + 24
  519. RB_ENDDRAG = WM_USER + 25
  520. RB_DRAGMOVE = WM_USER + 26
  521. RB_GETBARHEIGHT = WM_USER + 27
  522. RB_GETBANDINFOW = WM_USER + 28
  523. RB_GETBANDINFOA = WM_USER + 29
  524. RB_GETBANDINFO = RB_GETBANDINFOA
  525. RB_MINIMIZEBAND = WM_USER + 30
  526. RB_MAXIMIZEBAND = WM_USER + 31
  527. RB_GETDROPTARGET = CCM_GETDROPTARGET
  528. RB_GETBANDBORDERS = (
  529. WM_USER + 34
  530. ) # returns in lparam = lprc the amount of edges added to band wparam
  531. RB_SHOWBAND = WM_USER + 35 # show/hide band
  532. RB_SETPALETTE = WM_USER + 37
  533. RB_GETPALETTE = WM_USER + 38
  534. RB_MOVEBAND = WM_USER + 39
  535. RB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  536. RB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  537. RBN_HEIGHTCHANGE = RBN_FIRST - 0
  538. RBN_GETOBJECT = RBN_FIRST - 1
  539. RBN_LAYOUTCHANGED = RBN_FIRST - 2
  540. RBN_AUTOSIZE = RBN_FIRST - 3
  541. RBN_BEGINDRAG = RBN_FIRST - 4
  542. RBN_ENDDRAG = RBN_FIRST - 5
  543. RBN_DELETINGBAND = RBN_FIRST - 6 # Uses NMREBAR
  544. RBN_DELETEDBAND = RBN_FIRST - 7 # Uses NMREBAR
  545. RBN_CHILDSIZE = RBN_FIRST - 8
  546. RBNM_ID = 1
  547. RBNM_STYLE = 2
  548. RBNM_LPARAM = 4
  549. RBHT_NOWHERE = 1
  550. RBHT_CAPTION = 2
  551. RBHT_CLIENT = 3
  552. RBHT_GRABBER = 4
  553. TOOLTIPS_CLASSA = "tooltips_class32"
  554. TOOLTIPS_CLASS = TOOLTIPS_CLASSA
  555. TTS_ALWAYSTIP = 1
  556. TTS_NOPREFIX = 2
  557. TTF_IDISHWND = 1
  558. TTF_CENTERTIP = 2
  559. TTF_RTLREADING = 4
  560. TTF_SUBCLASS = 16
  561. TTF_TRACK = 32
  562. TTF_ABSOLUTE = 128
  563. TTF_TRANSPARENT = 256
  564. TTF_DI_SETITEM = 32768 # valid only on the TTN_NEEDTEXT callback
  565. TTDT_AUTOMATIC = 0
  566. TTDT_RESHOW = 1
  567. TTDT_AUTOPOP = 2
  568. TTDT_INITIAL = 3
  569. TTM_ACTIVATE = WM_USER + 1
  570. TTM_SETDELAYTIME = WM_USER + 3
  571. TTM_ADDTOOLA = WM_USER + 4
  572. TTM_ADDTOOLW = WM_USER + 50
  573. TTM_DELTOOLA = WM_USER + 5
  574. TTM_DELTOOLW = WM_USER + 51
  575. TTM_NEWTOOLRECTA = WM_USER + 6
  576. TTM_NEWTOOLRECTW = WM_USER + 52
  577. TTM_RELAYEVENT = WM_USER + 7
  578. TTM_GETTOOLINFOA = WM_USER + 8
  579. TTM_GETTOOLINFOW = WM_USER + 53
  580. TTM_SETTOOLINFOA = WM_USER + 9
  581. TTM_SETTOOLINFOW = WM_USER + 54
  582. TTM_HITTESTA = WM_USER + 10
  583. TTM_HITTESTW = WM_USER + 55
  584. TTM_GETTEXTA = WM_USER + 11
  585. TTM_GETTEXTW = WM_USER + 56
  586. TTM_UPDATETIPTEXTA = WM_USER + 12
  587. TTM_UPDATETIPTEXTW = WM_USER + 57
  588. TTM_GETTOOLCOUNT = WM_USER + 13
  589. TTM_ENUMTOOLSA = WM_USER + 14
  590. TTM_ENUMTOOLSW = WM_USER + 58
  591. TTM_GETCURRENTTOOLA = WM_USER + 15
  592. TTM_GETCURRENTTOOLW = WM_USER + 59
  593. TTM_WINDOWFROMPOINT = WM_USER + 16
  594. TTM_TRACKACTIVATE = WM_USER + 17 # wParam = TRUE/FALSE start end lparam = LPTOOLINFO
  595. TTM_TRACKPOSITION = WM_USER + 18 # lParam = dwPos
  596. TTM_SETTIPBKCOLOR = WM_USER + 19
  597. TTM_SETTIPTEXTCOLOR = WM_USER + 20
  598. TTM_GETDELAYTIME = WM_USER + 21
  599. TTM_GETTIPBKCOLOR = WM_USER + 22
  600. TTM_GETTIPTEXTCOLOR = WM_USER + 23
  601. TTM_SETMAXTIPWIDTH = WM_USER + 24
  602. TTM_GETMAXTIPWIDTH = WM_USER + 25
  603. TTM_SETMARGIN = WM_USER + 26 # lParam = lprc
  604. TTM_GETMARGIN = WM_USER + 27 # lParam = lprc
  605. TTM_POP = WM_USER + 28
  606. TTM_UPDATE = WM_USER + 29
  607. TTM_ADDTOOL = TTM_ADDTOOLA
  608. TTM_DELTOOL = TTM_DELTOOLA
  609. TTM_NEWTOOLRECT = TTM_NEWTOOLRECTA
  610. TTM_GETTOOLINFO = TTM_GETTOOLINFOA
  611. TTM_SETTOOLINFO = TTM_SETTOOLINFOA
  612. TTM_HITTEST = TTM_HITTESTA
  613. TTM_GETTEXT = TTM_GETTEXTA
  614. TTM_UPDATETIPTEXT = TTM_UPDATETIPTEXTA
  615. TTM_ENUMTOOLS = TTM_ENUMTOOLSA
  616. TTM_GETCURRENTTOOL = TTM_GETCURRENTTOOLA
  617. TTN_GETDISPINFOA = TTN_FIRST - 0
  618. TTN_GETDISPINFOW = TTN_FIRST - 10
  619. TTN_SHOW = TTN_FIRST - 1
  620. TTN_POP = TTN_FIRST - 2
  621. TTN_GETDISPINFO = TTN_GETDISPINFOA
  622. TTN_NEEDTEXT = TTN_GETDISPINFO
  623. TTN_NEEDTEXTA = TTN_GETDISPINFOA
  624. TTN_NEEDTEXTW = TTN_GETDISPINFOW
  625. SBARS_SIZEGRIP = 256
  626. SBARS_TOOLTIPS = 2048
  627. STATUSCLASSNAMEA = "msctls_statusbar32"
  628. STATUSCLASSNAME = STATUSCLASSNAMEA
  629. SB_SETTEXTA = WM_USER + 1
  630. SB_SETTEXTW = WM_USER + 11
  631. SB_GETTEXTA = WM_USER + 2
  632. SB_GETTEXTW = WM_USER + 13
  633. SB_GETTEXTLENGTHA = WM_USER + 3
  634. SB_GETTEXTLENGTHW = WM_USER + 12
  635. SB_GETTEXT = SB_GETTEXTA
  636. SB_SETTEXT = SB_SETTEXTA
  637. SB_GETTEXTLENGTH = SB_GETTEXTLENGTHA
  638. SB_SETPARTS = WM_USER + 4
  639. SB_GETPARTS = WM_USER + 6
  640. SB_GETBORDERS = WM_USER + 7
  641. SB_SETMINHEIGHT = WM_USER + 8
  642. SB_SIMPLE = WM_USER + 9
  643. SB_GETRECT = WM_USER + 10
  644. SB_ISSIMPLE = WM_USER + 14
  645. SB_SETICON = WM_USER + 15
  646. SB_SETTIPTEXTA = WM_USER + 16
  647. SB_SETTIPTEXTW = WM_USER + 17
  648. SB_GETTIPTEXTA = WM_USER + 18
  649. SB_GETTIPTEXTW = WM_USER + 19
  650. SB_GETICON = WM_USER + 20
  651. SB_SETTIPTEXT = SB_SETTIPTEXTA
  652. SB_GETTIPTEXT = SB_GETTIPTEXTA
  653. SB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  654. SB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  655. SBT_OWNERDRAW = 4096
  656. SBT_NOBORDERS = 256
  657. SBT_POPOUT = 512
  658. SBT_RTLREADING = 1024
  659. SBT_NOTABPARSING = 2048
  660. SBT_TOOLTIPS = 2048
  661. SB_SETBKCOLOR = CCM_SETBKCOLOR # lParam = bkColor
  662. SBN_SIMPLEMODECHANGE = SBN_FIRST - 0
  663. TRACKBAR_CLASSA = "msctls_trackbar32"
  664. TRACKBAR_CLASS = TRACKBAR_CLASSA
  665. TBS_AUTOTICKS = 1
  666. TBS_VERT = 2
  667. TBS_HORZ = 0
  668. TBS_TOP = 4
  669. TBS_BOTTOM = 0
  670. TBS_LEFT = 4
  671. TBS_RIGHT = 0
  672. TBS_BOTH = 8
  673. TBS_NOTICKS = 16
  674. TBS_ENABLESELRANGE = 32
  675. TBS_FIXEDLENGTH = 64
  676. TBS_NOTHUMB = 128
  677. TBS_TOOLTIPS = 256
  678. TBM_GETPOS = WM_USER
  679. TBM_GETRANGEMIN = WM_USER + 1
  680. TBM_GETRANGEMAX = WM_USER + 2
  681. TBM_GETTIC = WM_USER + 3
  682. TBM_SETTIC = WM_USER + 4
  683. TBM_SETPOS = WM_USER + 5
  684. TBM_SETRANGE = WM_USER + 6
  685. TBM_SETRANGEMIN = WM_USER + 7
  686. TBM_SETRANGEMAX = WM_USER + 8
  687. TBM_CLEARTICS = WM_USER + 9
  688. TBM_SETSEL = WM_USER + 10
  689. TBM_SETSELSTART = WM_USER + 11
  690. TBM_SETSELEND = WM_USER + 12
  691. TBM_GETPTICS = WM_USER + 14
  692. TBM_GETTICPOS = WM_USER + 15
  693. TBM_GETNUMTICS = WM_USER + 16
  694. TBM_GETSELSTART = WM_USER + 17
  695. TBM_GETSELEND = WM_USER + 18
  696. TBM_CLEARSEL = WM_USER + 19
  697. TBM_SETTICFREQ = WM_USER + 20
  698. TBM_SETPAGESIZE = WM_USER + 21
  699. TBM_GETPAGESIZE = WM_USER + 22
  700. TBM_SETLINESIZE = WM_USER + 23
  701. TBM_GETLINESIZE = WM_USER + 24
  702. TBM_GETTHUMBRECT = WM_USER + 25
  703. TBM_GETCHANNELRECT = WM_USER + 26
  704. TBM_SETTHUMBLENGTH = WM_USER + 27
  705. TBM_GETTHUMBLENGTH = WM_USER + 28
  706. TBM_SETTOOLTIPS = WM_USER + 29
  707. TBM_GETTOOLTIPS = WM_USER + 30
  708. TBM_SETTIPSIDE = WM_USER + 31
  709. TBTS_TOP = 0
  710. TBTS_LEFT = 1
  711. TBTS_BOTTOM = 2
  712. TBTS_RIGHT = 3
  713. TBM_SETBUDDY = WM_USER + 32 # wparam = BOOL fLeft; (or right)
  714. TBM_GETBUDDY = WM_USER + 33 # wparam = BOOL fLeft; (or right)
  715. TBM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  716. TBM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  717. TB_LINEUP = 0
  718. TB_LINEDOWN = 1
  719. TB_PAGEUP = 2
  720. TB_PAGEDOWN = 3
  721. TB_THUMBPOSITION = 4
  722. TB_THUMBTRACK = 5
  723. TB_TOP = 6
  724. TB_BOTTOM = 7
  725. TB_ENDTRACK = 8
  726. TBCD_TICS = 1
  727. TBCD_THUMB = 2
  728. TBCD_CHANNEL = 3
  729. DL_BEGINDRAG = WM_USER + 133
  730. DL_DRAGGING = WM_USER + 134
  731. DL_DROPPED = WM_USER + 135
  732. DL_CANCELDRAG = WM_USER + 136
  733. DL_CURSORSET = 0
  734. DL_STOPCURSOR = 1
  735. DL_COPYCURSOR = 2
  736. DL_MOVECURSOR = 3
  737. DRAGLISTMSGSTRING = "commctrl_DragListMsg"
  738. UPDOWN_CLASSA = "msctls_updown32"
  739. UPDOWN_CLASS = UPDOWN_CLASSA
  740. UD_MAXVAL = 32767
  741. UD_MINVAL = -UD_MAXVAL
  742. UDS_WRAP = 1
  743. UDS_SETBUDDYINT = 2
  744. UDS_ALIGNRIGHT = 4
  745. UDS_ALIGNLEFT = 8
  746. UDS_AUTOBUDDY = 16
  747. UDS_ARROWKEYS = 32
  748. UDS_HORZ = 64
  749. UDS_NOTHOUSANDS = 128
  750. UDS_HOTTRACK = 256
  751. UDM_SETRANGE = WM_USER + 101
  752. UDM_GETRANGE = WM_USER + 102
  753. UDM_SETPOS = WM_USER + 103
  754. UDM_GETPOS = WM_USER + 104
  755. UDM_SETBUDDY = WM_USER + 105
  756. UDM_GETBUDDY = WM_USER + 106
  757. UDM_SETACCEL = WM_USER + 107
  758. UDM_GETACCEL = WM_USER + 108
  759. UDM_SETBASE = WM_USER + 109
  760. UDM_GETBASE = WM_USER + 110
  761. UDM_SETRANGE32 = WM_USER + 111
  762. UDM_GETRANGE32 = WM_USER + 112 # wParam & lParam are LPINT
  763. UDM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  764. UDM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  765. UDN_DELTAPOS = UDN_FIRST - 1
  766. PROGRESS_CLASSA = "msctls_progress32"
  767. PROGRESS_CLASS = PROGRESS_CLASSA
  768. PBS_SMOOTH = 1
  769. PBS_VERTICAL = 4
  770. PBM_SETRANGE = WM_USER + 1
  771. PBM_SETPOS = WM_USER + 2
  772. PBM_DELTAPOS = WM_USER + 3
  773. PBM_SETSTEP = WM_USER + 4
  774. PBM_STEPIT = WM_USER + 5
  775. PBM_SETRANGE32 = WM_USER + 6 # lParam = high, wParam = low
  776. PBM_GETRANGE = (
  777. WM_USER + 7
  778. ) # wParam = return (TRUE ? low : high). lParam = PPBRANGE or NULL
  779. PBM_GETPOS = WM_USER + 8
  780. PBM_SETBARCOLOR = WM_USER + 9 # lParam = bar color
  781. PBM_SETBKCOLOR = CCM_SETBKCOLOR # lParam = bkColor
  782. HOTKEYF_SHIFT = 1
  783. HOTKEYF_CONTROL = 2
  784. HOTKEYF_ALT = 4
  785. HOTKEYF_EXT = 8
  786. HKCOMB_NONE = 1
  787. HKCOMB_S = 2
  788. HKCOMB_C = 4
  789. HKCOMB_A = 8
  790. HKCOMB_SC = 16
  791. HKCOMB_SA = 32
  792. HKCOMB_CA = 64
  793. HKCOMB_SCA = 128
  794. HKM_SETHOTKEY = WM_USER + 1
  795. HKM_GETHOTKEY = WM_USER + 2
  796. HKM_SETRULES = WM_USER + 3
  797. HOTKEY_CLASSA = "msctls_hotkey32"
  798. HOTKEY_CLASS = HOTKEY_CLASSA
  799. CCS_TOP = 0x00000001
  800. CCS_NOMOVEY = 0x00000002
  801. CCS_BOTTOM = 0x00000003
  802. CCS_NORESIZE = 0x00000004
  803. CCS_NOPARENTALIGN = 0x00000008
  804. CCS_ADJUSTABLE = 0x00000020
  805. CCS_NODIVIDER = 0x00000040
  806. CCS_VERT = 0x00000080
  807. CCS_LEFT = CCS_VERT | CCS_TOP
  808. CCS_RIGHT = CCS_VERT | CCS_BOTTOM
  809. CCS_NOMOVEX = CCS_VERT | CCS_NOMOVEY
  810. WC_LISTVIEWA = "SysListView32"
  811. WC_LISTVIEW = WC_LISTVIEWA
  812. LVS_ICON = 0
  813. LVS_REPORT = 1
  814. LVS_SMALLICON = 2
  815. LVS_LIST = 3
  816. LVS_TYPEMASK = 3
  817. LVS_SINGLESEL = 4
  818. LVS_SHOWSELALWAYS = 8
  819. LVS_SORTASCENDING = 16
  820. LVS_SORTDESCENDING = 32
  821. LVS_SHAREIMAGELISTS = 64
  822. LVS_NOLABELWRAP = 128
  823. LVS_AUTOARRANGE = 256
  824. LVS_EDITLABELS = 512
  825. LVS_OWNERDATA = 4096
  826. LVS_NOSCROLL = 8192
  827. LVS_TYPESTYLEMASK = 64512
  828. LVS_ALIGNTOP = 0
  829. LVS_ALIGNLEFT = 2048
  830. LVS_ALIGNMASK = 3072
  831. LVS_OWNERDRAWFIXED = 1024
  832. LVS_NOCOLUMNHEADER = 16384
  833. LVS_NOSORTHEADER = 32768
  834. LVM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  835. LVM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  836. LVM_GETBKCOLOR = LVM_FIRST + 0
  837. LVM_SETBKCOLOR = LVM_FIRST + 1
  838. LVM_GETIMAGELIST = LVM_FIRST + 2
  839. LVSIL_NORMAL = 0
  840. LVSIL_SMALL = 1
  841. LVSIL_STATE = 2
  842. LVM_SETIMAGELIST = LVM_FIRST + 3
  843. LVM_GETITEMCOUNT = LVM_FIRST + 4
  844. LVIF_TEXT = 1
  845. LVIF_IMAGE = 2
  846. LVIF_PARAM = 4
  847. LVIF_STATE = 8
  848. LVIF_INDENT = 16
  849. LVIF_NORECOMPUTE = 2048
  850. LVIS_FOCUSED = 1
  851. LVIS_SELECTED = 2
  852. LVIS_CUT = 4
  853. LVIS_DROPHILITED = 8
  854. LVIS_ACTIVATING = 32
  855. LVIS_OVERLAYMASK = 3840
  856. LVIS_STATEIMAGEMASK = 61440
  857. I_INDENTCALLBACK = -1
  858. LPSTR_TEXTCALLBACKA = -1
  859. LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKA
  860. I_IMAGECALLBACK = -1
  861. LVM_GETITEMA = LVM_FIRST + 5
  862. LVM_GETITEMW = LVM_FIRST + 75
  863. LVM_GETITEM = LVM_GETITEMA
  864. LVM_SETITEMA = LVM_FIRST + 6
  865. LVM_SETITEMW = LVM_FIRST + 76
  866. LVM_SETITEM = LVM_SETITEMA
  867. LVM_INSERTITEMA = LVM_FIRST + 7
  868. LVM_INSERTITEMW = LVM_FIRST + 77
  869. LVM_INSERTITEM = LVM_INSERTITEMA
  870. LVM_DELETEITEM = LVM_FIRST + 8
  871. LVM_DELETEALLITEMS = LVM_FIRST + 9
  872. LVM_GETCALLBACKMASK = LVM_FIRST + 10
  873. LVM_SETCALLBACKMASK = LVM_FIRST + 11
  874. LVNI_ALL = 0
  875. LVNI_FOCUSED = 1
  876. LVNI_SELECTED = 2
  877. LVNI_CUT = 4
  878. LVNI_DROPHILITED = 8
  879. LVNI_ABOVE = 256
  880. LVNI_BELOW = 512
  881. LVNI_TOLEFT = 1024
  882. LVNI_TORIGHT = 2048
  883. LVM_GETNEXTITEM = LVM_FIRST + 12
  884. LVFI_PARAM = 1
  885. LVFI_STRING = 2
  886. LVFI_PARTIAL = 8
  887. LVFI_WRAP = 32
  888. LVFI_NEARESTXY = 64
  889. LVM_FINDITEMA = LVM_FIRST + 13
  890. LVM_FINDITEMW = LVM_FIRST + 83
  891. LVM_FINDITEM = LVM_FINDITEMA
  892. LVIR_BOUNDS = 0
  893. LVIR_ICON = 1
  894. LVIR_LABEL = 2
  895. LVIR_SELECTBOUNDS = 3
  896. LVM_GETITEMRECT = LVM_FIRST + 14
  897. LVM_SETITEMPOSITION = LVM_FIRST + 15
  898. LVM_GETITEMPOSITION = LVM_FIRST + 16
  899. LVM_GETSTRINGWIDTHA = LVM_FIRST + 17
  900. LVM_GETSTRINGWIDTHW = LVM_FIRST + 87
  901. LVM_GETSTRINGWIDTH = LVM_GETSTRINGWIDTHA
  902. LVHT_NOWHERE = 1
  903. LVHT_ONITEMICON = 2
  904. LVHT_ONITEMLABEL = 4
  905. LVHT_ONITEMSTATEICON = 8
  906. LVHT_ONITEM = LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON
  907. LVHT_ABOVE = 8
  908. LVHT_BELOW = 16
  909. LVHT_TORIGHT = 32
  910. LVHT_TOLEFT = 64
  911. LVM_HITTEST = LVM_FIRST + 18
  912. LVM_ENSUREVISIBLE = LVM_FIRST + 19
  913. LVM_SCROLL = LVM_FIRST + 20
  914. LVM_REDRAWITEMS = LVM_FIRST + 21
  915. LVA_DEFAULT = 0
  916. LVA_ALIGNLEFT = 1
  917. LVA_ALIGNTOP = 2
  918. LVA_SNAPTOGRID = 5
  919. LVM_ARRANGE = LVM_FIRST + 22
  920. LVM_EDITLABELA = LVM_FIRST + 23
  921. LVM_EDITLABELW = LVM_FIRST + 118
  922. LVM_EDITLABEL = LVM_EDITLABELA
  923. LVM_GETEDITCONTROL = LVM_FIRST + 24
  924. LVCF_FMT = 1
  925. LVCF_WIDTH = 2
  926. LVCF_TEXT = 4
  927. LVCF_SUBITEM = 8
  928. LVCF_IMAGE = 16
  929. LVCF_ORDER = 32
  930. LVCFMT_LEFT = 0
  931. LVCFMT_RIGHT = 1
  932. LVCFMT_CENTER = 2
  933. LVCFMT_JUSTIFYMASK = 3
  934. LVCFMT_IMAGE = 2048
  935. LVCFMT_BITMAP_ON_RIGHT = 4096
  936. LVCFMT_COL_HAS_IMAGES = 32768
  937. LVM_GETCOLUMNA = LVM_FIRST + 25
  938. LVM_GETCOLUMNW = LVM_FIRST + 95
  939. LVM_GETCOLUMN = LVM_GETCOLUMNA
  940. LVM_SETCOLUMNA = LVM_FIRST + 26
  941. LVM_SETCOLUMNW = LVM_FIRST + 96
  942. LVM_SETCOLUMN = LVM_SETCOLUMNA
  943. LVM_INSERTCOLUMNA = LVM_FIRST + 27
  944. LVM_INSERTCOLUMNW = LVM_FIRST + 97
  945. LVM_INSERTCOLUMN = LVM_INSERTCOLUMNA
  946. LVM_DELETECOLUMN = LVM_FIRST + 28
  947. LVM_GETCOLUMNWIDTH = LVM_FIRST + 29
  948. LVSCW_AUTOSIZE = -1
  949. LVSCW_AUTOSIZE_USEHEADER = -2
  950. LVM_SETCOLUMNWIDTH = LVM_FIRST + 30
  951. LVM_GETHEADER = LVM_FIRST + 31
  952. LVM_CREATEDRAGIMAGE = LVM_FIRST + 33
  953. LVM_GETVIEWRECT = LVM_FIRST + 34
  954. LVM_GETTEXTCOLOR = LVM_FIRST + 35
  955. LVM_SETTEXTCOLOR = LVM_FIRST + 36
  956. LVM_GETTEXTBKCOLOR = LVM_FIRST + 37
  957. LVM_SETTEXTBKCOLOR = LVM_FIRST + 38
  958. LVM_GETTOPINDEX = LVM_FIRST + 39
  959. LVM_GETCOUNTPERPAGE = LVM_FIRST + 40
  960. LVM_GETORIGIN = LVM_FIRST + 41
  961. LVM_UPDATE = LVM_FIRST + 42
  962. LVM_SETITEMSTATE = LVM_FIRST + 43
  963. LVM_GETITEMSTATE = LVM_FIRST + 44
  964. LVM_GETITEMTEXTA = LVM_FIRST + 45
  965. LVM_GETITEMTEXTW = LVM_FIRST + 115
  966. LVM_GETITEMTEXT = LVM_GETITEMTEXTA
  967. LVM_SETITEMTEXTA = LVM_FIRST + 46
  968. LVM_SETITEMTEXTW = LVM_FIRST + 116
  969. LVM_SETITEMTEXT = LVM_SETITEMTEXTA
  970. LVSICF_NOINVALIDATEALL = 1
  971. LVSICF_NOSCROLL = 2
  972. LVM_SETITEMCOUNT = LVM_FIRST + 47
  973. LVM_SORTITEMS = LVM_FIRST + 48
  974. LVM_SETITEMPOSITION32 = LVM_FIRST + 49
  975. LVM_GETSELECTEDCOUNT = LVM_FIRST + 50
  976. LVM_GETITEMSPACING = LVM_FIRST + 51
  977. LVM_GETISEARCHSTRINGA = LVM_FIRST + 52
  978. LVM_GETISEARCHSTRINGW = LVM_FIRST + 117
  979. LVM_GETISEARCHSTRING = LVM_GETISEARCHSTRINGA
  980. LVM_SETICONSPACING = LVM_FIRST + 53
  981. LVM_SETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + 54 # optional wParam == mask
  982. LVM_GETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + 55
  983. LVS_EX_GRIDLINES = 1
  984. LVS_EX_SUBITEMIMAGES = 2
  985. LVS_EX_CHECKBOXES = 4
  986. LVS_EX_TRACKSELECT = 8
  987. LVS_EX_HEADERDRAGDROP = 16
  988. LVS_EX_FULLROWSELECT = 32 # applies to report mode only
  989. LVS_EX_ONECLICKACTIVATE = 64
  990. LVS_EX_TWOCLICKACTIVATE = 128
  991. LVS_EX_FLATSB = 256
  992. LVS_EX_REGIONAL = 512
  993. LVS_EX_INFOTIP = 1024 # listview does InfoTips for you
  994. LVS_EX_UNDERLINEHOT = 2048
  995. LVS_EX_UNDERLINECOLD = 4096
  996. LVS_EX_MULTIWORKAREAS = 8192
  997. LVM_GETSUBITEMRECT = LVM_FIRST + 56
  998. LVM_SUBITEMHITTEST = LVM_FIRST + 57
  999. LVM_SETCOLUMNORDERARRAY = LVM_FIRST + 58
  1000. LVM_GETCOLUMNORDERARRAY = LVM_FIRST + 59
  1001. LVM_SETHOTITEM = LVM_FIRST + 60
  1002. LVM_GETHOTITEM = LVM_FIRST + 61
  1003. LVM_SETHOTCURSOR = LVM_FIRST + 62
  1004. LVM_GETHOTCURSOR = LVM_FIRST + 63
  1005. LVM_APPROXIMATEVIEWRECT = LVM_FIRST + 64
  1006. LV_MAX_WORKAREAS = 16
  1007. LVM_SETWORKAREAS = LVM_FIRST + 65
  1008. LVM_GETWORKAREAS = LVM_FIRST + 70
  1009. LVM_GETNUMBEROFWORKAREAS = LVM_FIRST + 73
  1010. LVM_GETSELECTIONMARK = LVM_FIRST + 66
  1011. LVM_SETSELECTIONMARK = LVM_FIRST + 67
  1012. LVM_SETHOVERTIME = LVM_FIRST + 71
  1013. LVM_GETHOVERTIME = LVM_FIRST + 72
  1014. LVM_SETTOOLTIPS = LVM_FIRST + 74
  1015. LVM_GETTOOLTIPS = LVM_FIRST + 78
  1016. LVBKIF_SOURCE_NONE = 0
  1017. LVBKIF_SOURCE_HBITMAP = 1
  1018. LVBKIF_SOURCE_URL = 2
  1019. LVBKIF_SOURCE_MASK = 3
  1020. LVBKIF_STYLE_NORMAL = 0
  1021. LVBKIF_STYLE_TILE = 16
  1022. LVBKIF_STYLE_MASK = 16
  1023. LVM_SETBKIMAGEA = LVM_FIRST + 68
  1024. LVM_SETBKIMAGEW = LVM_FIRST + 138
  1025. LVM_GETBKIMAGEA = LVM_FIRST + 69
  1026. LVM_GETBKIMAGEW = LVM_FIRST + 139
  1027. LVKF_ALT = 1
  1028. LVKF_CONTROL = 2
  1029. LVKF_SHIFT = 4
  1030. LVN_ITEMCHANGING = LVN_FIRST - 0
  1031. LVN_ITEMCHANGED = LVN_FIRST - 1
  1032. LVN_INSERTITEM = LVN_FIRST - 2
  1033. LVN_DELETEITEM = LVN_FIRST - 3
  1034. LVN_DELETEALLITEMS = LVN_FIRST - 4
  1035. LVN_BEGINLABELEDITA = LVN_FIRST - 5
  1036. LVN_BEGINLABELEDITW = LVN_FIRST - 75
  1037. LVN_ENDLABELEDITA = LVN_FIRST - 6
  1038. LVN_ENDLABELEDITW = LVN_FIRST - 76
  1039. LVN_COLUMNCLICK = LVN_FIRST - 8
  1040. LVN_BEGINDRAG = LVN_FIRST - 9
  1041. LVN_BEGINRDRAG = LVN_FIRST - 11
  1042. LVN_ODCACHEHINT = LVN_FIRST - 13
  1043. LVN_ODFINDITEMA = LVN_FIRST - 52
  1044. LVN_ODFINDITEMW = LVN_FIRST - 79
  1045. LVN_ITEMACTIVATE = LVN_FIRST - 14
  1046. LVN_ODSTATECHANGED = LVN_FIRST - 15
  1047. LVN_ODFINDITEM = LVN_ODFINDITEMA
  1048. LVN_HOTTRACK = LVN_FIRST - 21
  1049. LVN_GETDISPINFOA = LVN_FIRST - 50
  1050. LVN_GETDISPINFOW = LVN_FIRST - 77
  1051. LVN_SETDISPINFOA = LVN_FIRST - 51
  1052. LVN_SETDISPINFOW = LVN_FIRST - 78
  1053. LVN_BEGINLABELEDIT = LVN_BEGINLABELEDITA
  1054. LVN_ENDLABELEDIT = LVN_ENDLABELEDITA
  1055. LVN_GETDISPINFO = LVN_GETDISPINFOA
  1056. LVN_SETDISPINFO = LVN_SETDISPINFOA
  1057. LVIF_DI_SETITEM = 4096
  1058. LVN_KEYDOWN = LVN_FIRST - 55
  1059. LVN_MARQUEEBEGIN = LVN_FIRST - 56
  1060. LVGIT_UNFOLDED = 1
  1061. LVN_GETINFOTIPA = LVN_FIRST - 57
  1062. LVN_GETINFOTIPW = LVN_FIRST - 58
  1063. LVN_GETINFOTIP = LVN_GETINFOTIPA
  1064. WC_TREEVIEWA = "SysTreeView32"
  1065. WC_TREEVIEW = WC_TREEVIEWA
  1066. TVS_HASBUTTONS = 1
  1067. TVS_HASLINES = 2
  1068. TVS_LINESATROOT = 4
  1069. TVS_EDITLABELS = 8
  1070. TVS_DISABLEDRAGDROP = 16
  1071. TVS_SHOWSELALWAYS = 32
  1072. TVS_RTLREADING = 64
  1073. TVS_NOTOOLTIPS = 128
  1074. TVS_CHECKBOXES = 256
  1075. TVS_TRACKSELECT = 512
  1076. TVS_SINGLEEXPAND = 1024
  1077. TVS_INFOTIP = 2048
  1078. TVS_FULLROWSELECT = 4096
  1079. TVS_NOSCROLL = 8192
  1080. TVS_NONEVENHEIGHT = 16384
  1081. TVIF_TEXT = 1
  1082. TVIF_IMAGE = 2
  1083. TVIF_PARAM = 4
  1084. TVIF_STATE = 8
  1085. TVIF_HANDLE = 16
  1086. TVIF_SELECTEDIMAGE = 32
  1087. TVIF_CHILDREN = 64
  1088. TVIF_INTEGRAL = 128
  1089. TVIS_SELECTED = 2
  1090. TVIS_CUT = 4
  1091. TVIS_DROPHILITED = 8
  1092. TVIS_BOLD = 16
  1093. TVIS_EXPANDED = 32
  1094. TVIS_EXPANDEDONCE = 64
  1095. TVIS_EXPANDPARTIAL = 128
  1096. TVIS_OVERLAYMASK = 3840
  1097. TVIS_STATEIMAGEMASK = 61440
  1098. TVIS_USERMASK = 61440
  1099. I_CHILDRENCALLBACK = -1
  1100. TVI_ROOT = -65536
  1101. TVI_FIRST = -65535
  1102. TVI_LAST = -65534
  1103. TVI_SORT = -65533
  1104. TVM_INSERTITEMA = TV_FIRST + 0
  1105. TVM_INSERTITEMW = TV_FIRST + 50
  1106. TVM_INSERTITEM = TVM_INSERTITEMA
  1107. TVM_DELETEITEM = TV_FIRST + 1
  1108. TVM_EXPAND = TV_FIRST + 2
  1109. TVE_COLLAPSE = 1
  1110. TVE_EXPAND = 2
  1111. TVE_TOGGLE = 3
  1112. TVE_EXPANDPARTIAL = 16384
  1113. TVE_COLLAPSERESET = 32768
  1114. TVM_GETITEMRECT = TV_FIRST + 4
  1115. TVM_GETCOUNT = TV_FIRST + 5
  1116. TVM_GETINDENT = TV_FIRST + 6
  1117. TVM_SETINDENT = TV_FIRST + 7
  1118. TVM_GETIMAGELIST = TV_FIRST + 8
  1119. TVSIL_NORMAL = 0
  1120. TVSIL_STATE = 2
  1121. TVM_SETIMAGELIST = TV_FIRST + 9
  1122. TVM_GETNEXTITEM = TV_FIRST + 10
  1123. TVGN_ROOT = 0
  1124. TVGN_NEXT = 1
  1125. TVGN_PREVIOUS = 2
  1126. TVGN_PARENT = 3
  1127. TVGN_CHILD = 4
  1128. TVGN_FIRSTVISIBLE = 5
  1129. TVGN_NEXTVISIBLE = 6
  1130. TVGN_PREVIOUSVISIBLE = 7
  1131. TVGN_DROPHILITE = 8
  1132. TVGN_CARET = 9
  1133. TVGN_LASTVISIBLE = 10
  1134. TVM_SELECTITEM = TV_FIRST + 11
  1135. TVM_GETITEMA = TV_FIRST + 12
  1136. TVM_GETITEMW = TV_FIRST + 62
  1137. TVM_GETITEM = TVM_GETITEMA
  1138. TVM_SETITEMA = TV_FIRST + 13
  1139. TVM_SETITEMW = TV_FIRST + 63
  1140. TVM_SETITEM = TVM_SETITEMA
  1141. TVM_EDITLABELA = TV_FIRST + 14
  1142. TVM_EDITLABELW = TV_FIRST + 65
  1143. TVM_EDITLABEL = TVM_EDITLABELA
  1144. TVM_GETEDITCONTROL = TV_FIRST + 15
  1145. TVM_GETVISIBLECOUNT = TV_FIRST + 16
  1146. TVM_HITTEST = TV_FIRST + 17
  1147. TVHT_NOWHERE = 1
  1148. TVHT_ONITEMICON = 2
  1149. TVHT_ONITEMLABEL = 4
  1150. TVHT_ONITEMINDENT = 8
  1151. TVHT_ONITEMBUTTON = 16
  1152. TVHT_ONITEMRIGHT = 32
  1153. TVHT_ONITEMSTATEICON = 64
  1154. TVHT_ABOVE = 256
  1155. TVHT_BELOW = 512
  1156. TVHT_TORIGHT = 1024
  1157. TVHT_TOLEFT = 2048
  1158. TVHT_ONITEM = TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON
  1159. TVM_CREATEDRAGIMAGE = TV_FIRST + 18
  1160. TVM_SORTCHILDREN = TV_FIRST + 19
  1161. TVM_ENSUREVISIBLE = TV_FIRST + 20
  1162. TVM_SORTCHILDRENCB = TV_FIRST + 21
  1163. TVM_ENDEDITLABELNOW = TV_FIRST + 22
  1164. TVM_GETISEARCHSTRINGA = TV_FIRST + 23
  1165. TVM_GETISEARCHSTRINGW = TV_FIRST + 64
  1166. TVM_GETISEARCHSTRING = TVM_GETISEARCHSTRINGA
  1167. TVM_SETTOOLTIPS = TV_FIRST + 24
  1168. TVM_GETTOOLTIPS = TV_FIRST + 25
  1169. TVM_SETINSERTMARK = TV_FIRST + 26
  1170. TVM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1171. TVM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1172. TVM_SETITEMHEIGHT = TV_FIRST + 27
  1173. TVM_GETITEMHEIGHT = TV_FIRST + 28
  1174. TVM_SETBKCOLOR = TV_FIRST + 29
  1175. TVM_SETTEXTCOLOR = TV_FIRST + 30
  1176. TVM_GETBKCOLOR = TV_FIRST + 31
  1177. TVM_GETTEXTCOLOR = TV_FIRST + 32
  1178. TVM_SETSCROLLTIME = TV_FIRST + 33
  1179. TVM_GETSCROLLTIME = TV_FIRST + 34
  1180. TVM_SETINSERTMARKCOLOR = TV_FIRST + 37
  1181. TVM_GETINSERTMARKCOLOR = TV_FIRST + 38
  1182. TVN_SELCHANGINGA = TVN_FIRST - 1
  1183. TVN_SELCHANGINGW = TVN_FIRST - 50
  1184. TVN_SELCHANGEDA = TVN_FIRST - 2
  1185. TVN_SELCHANGEDW = TVN_FIRST - 51
  1186. TVC_UNKNOWN = 0
  1187. TVC_BYMOUSE = 1
  1188. TVC_BYKEYBOARD = 2
  1189. TVN_GETDISPINFOA = TVN_FIRST - 3
  1190. TVN_GETDISPINFOW = TVN_FIRST - 52
  1191. TVN_SETDISPINFOA = TVN_FIRST - 4
  1192. TVN_SETDISPINFOW = TVN_FIRST - 53
  1193. TVIF_DI_SETITEM = 4096
  1194. TVN_ITEMEXPANDINGA = TVN_FIRST - 5
  1195. TVN_ITEMEXPANDINGW = TVN_FIRST - 54
  1196. TVN_ITEMEXPANDEDA = TVN_FIRST - 6
  1197. TVN_ITEMEXPANDEDW = TVN_FIRST - 55
  1198. TVN_BEGINDRAGA = TVN_FIRST - 7
  1199. TVN_BEGINDRAGW = TVN_FIRST - 56
  1200. TVN_BEGINRDRAGA = TVN_FIRST - 8
  1201. TVN_BEGINRDRAGW = TVN_FIRST - 57
  1202. TVN_DELETEITEMA = TVN_FIRST - 9
  1203. TVN_DELETEITEMW = TVN_FIRST - 58
  1204. TVN_BEGINLABELEDITA = TVN_FIRST - 10
  1205. TVN_BEGINLABELEDITW = TVN_FIRST - 59
  1206. TVN_ENDLABELEDITA = TVN_FIRST - 11
  1207. TVN_ENDLABELEDITW = TVN_FIRST - 60
  1208. TVN_KEYDOWN = TVN_FIRST - 12
  1209. TVN_GETINFOTIPA = TVN_FIRST - 13
  1210. TVN_GETINFOTIPW = TVN_FIRST - 14
  1211. TVN_SINGLEEXPAND = TVN_FIRST - 15
  1212. TVN_SELCHANGING = TVN_SELCHANGINGA
  1213. TVN_SELCHANGED = TVN_SELCHANGEDA
  1214. TVN_GETDISPINFO = TVN_GETDISPINFOA
  1215. TVN_SETDISPINFO = TVN_SETDISPINFOA
  1216. TVN_ITEMEXPANDING = TVN_ITEMEXPANDINGA
  1217. TVN_ITEMEXPANDED = TVN_ITEMEXPANDEDA
  1218. TVN_BEGINDRAG = TVN_BEGINDRAGA
  1219. TVN_BEGINRDRAG = TVN_BEGINRDRAGA
  1220. TVN_DELETEITEM = TVN_DELETEITEMA
  1221. TVN_BEGINLABELEDIT = TVN_BEGINLABELEDITA
  1222. TVN_ENDLABELEDIT = TVN_ENDLABELEDITA
  1223. TVN_GETINFOTIP = TVN_GETINFOTIPA
  1224. TVCDRF_NOIMAGES = 65536
  1225. WC_COMBOBOXEXA = "ComboBoxEx32"
  1226. WC_COMBOBOXEX = WC_COMBOBOXEXA
  1227. CBEIF_TEXT = 1
  1228. CBEIF_IMAGE = 2
  1229. CBEIF_SELECTEDIMAGE = 4
  1230. CBEIF_OVERLAY = 8
  1231. CBEIF_INDENT = 16
  1232. CBEIF_LPARAM = 32
  1233. CBEIF_DI_SETITEM = 268435456
  1234. CBEM_INSERTITEMA = WM_USER + 1
  1235. CBEM_SETIMAGELIST = WM_USER + 2
  1236. CBEM_GETIMAGELIST = WM_USER + 3
  1237. CBEM_GETITEMA = WM_USER + 4
  1238. CBEM_SETITEMA = WM_USER + 5
  1239. # CBEM_DELETEITEM = CB_DELETESTRING
  1240. CBEM_GETCOMBOCONTROL = WM_USER + 6
  1241. CBEM_GETEDITCONTROL = WM_USER + 7
  1242. CBEM_SETEXSTYLE = WM_USER + 8 # use SETEXTENDEDSTYLE instead
  1243. CBEM_SETEXTENDEDSTYLE = WM_USER + 14 # lparam == new style, wParam (optional) == mask
  1244. CBEM_GETEXSTYLE = WM_USER + 9 # use GETEXTENDEDSTYLE instead
  1245. CBEM_GETEXTENDEDSTYLE = WM_USER + 9
  1246. CBEM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1247. CBEM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1248. CBEM_HASEDITCHANGED = WM_USER + 10
  1249. CBEM_INSERTITEMW = WM_USER + 11
  1250. CBEM_SETITEMW = WM_USER + 12
  1251. CBEM_GETITEMW = WM_USER + 13
  1252. CBEM_INSERTITEM = CBEM_INSERTITEMA
  1253. CBEM_SETITEM = CBEM_SETITEMA
  1254. CBEM_GETITEM = CBEM_GETITEMA
  1255. CBES_EX_NOEDITIMAGE = 1
  1256. CBES_EX_NOEDITIMAGEINDENT = 2
  1257. CBES_EX_PATHWORDBREAKPROC = 4
  1258. CBES_EX_NOSIZELIMIT = 8
  1259. CBES_EX_CASESENSITIVE = 16
  1260. CBEN_GETDISPINFO = CBEN_FIRST - 0
  1261. CBEN_GETDISPINFOA = CBEN_FIRST - 0
  1262. CBEN_INSERTITEM = CBEN_FIRST - 1
  1263. CBEN_DELETEITEM = CBEN_FIRST - 2
  1264. CBEN_BEGINEDIT = CBEN_FIRST - 4
  1265. CBEN_ENDEDITA = CBEN_FIRST - 5
  1266. CBEN_ENDEDITW = CBEN_FIRST - 6
  1267. CBEN_GETDISPINFOW = CBEN_FIRST - 7
  1268. CBEN_DRAGBEGINA = CBEN_FIRST - 8
  1269. CBEN_DRAGBEGINW = CBEN_FIRST - 9
  1270. CBEN_DRAGBEGIN = CBEN_DRAGBEGINA
  1271. CBEN_ENDEDIT = CBEN_ENDEDITA
  1272. CBENF_KILLFOCUS = 1
  1273. CBENF_RETURN = 2
  1274. CBENF_ESCAPE = 3
  1275. CBENF_DROPDOWN = 4
  1276. CBEMAXSTRLEN = 260
  1277. WC_TABCONTROLA = "SysTabControl32"
  1278. WC_TABCONTROL = WC_TABCONTROLA
  1279. TCS_SCROLLOPPOSITE = 1 # assumes multiline tab
  1280. TCS_BOTTOM = 2
  1281. TCS_RIGHT = 2
  1282. TCS_MULTISELECT = 4 # allow multi-select in button mode
  1283. TCS_FLATBUTTONS = 8
  1284. TCS_FORCEICONLEFT = 16
  1285. TCS_FORCELABELLEFT = 32
  1286. TCS_HOTTRACK = 64
  1287. TCS_VERTICAL = 128
  1288. TCS_TABS = 0
  1289. TCS_BUTTONS = 256
  1290. TCS_SINGLELINE = 0
  1291. TCS_MULTILINE = 512
  1292. TCS_RIGHTJUSTIFY = 0
  1293. TCS_FIXEDWIDTH = 1024
  1294. TCS_RAGGEDRIGHT = 2048
  1295. TCS_FOCUSONBUTTONDOWN = 4096
  1296. TCS_OWNERDRAWFIXED = 8192
  1297. TCS_TOOLTIPS = 16384
  1298. TCS_FOCUSNEVER = 32768
  1299. TCS_EX_FLATSEPARATORS = 1
  1300. TCS_EX_REGISTERDROP = 2
  1301. TCM_GETIMAGELIST = TCM_FIRST + 2
  1302. TCM_SETIMAGELIST = TCM_FIRST + 3
  1303. TCM_GETITEMCOUNT = TCM_FIRST + 4
  1304. TCIF_TEXT = 1
  1305. TCIF_IMAGE = 2
  1306. TCIF_RTLREADING = 4
  1307. TCIF_PARAM = 8
  1308. TCIF_STATE = 16
  1309. TCIS_BUTTONPRESSED = 1
  1310. TCIS_HIGHLIGHTED = 2
  1311. TCM_GETITEMA = TCM_FIRST + 5
  1312. TCM_GETITEMW = TCM_FIRST + 60
  1313. TCM_GETITEM = TCM_GETITEMA
  1314. TCM_SETITEMA = TCM_FIRST + 6
  1315. TCM_SETITEMW = TCM_FIRST + 61
  1316. TCM_SETITEM = TCM_SETITEMA
  1317. TCM_INSERTITEMA = TCM_FIRST + 7
  1318. TCM_INSERTITEMW = TCM_FIRST + 62
  1319. TCM_INSERTITEM = TCM_INSERTITEMA
  1320. TCM_DELETEITEM = TCM_FIRST + 8
  1321. TCM_DELETEALLITEMS = TCM_FIRST + 9
  1322. TCM_GETITEMRECT = TCM_FIRST + 10
  1323. TCM_GETCURSEL = TCM_FIRST + 11
  1324. TCM_SETCURSEL = TCM_FIRST + 12
  1325. TCHT_NOWHERE = 1
  1326. TCHT_ONITEMICON = 2
  1327. TCHT_ONITEMLABEL = 4
  1328. TCHT_ONITEM = TCHT_ONITEMICON | TCHT_ONITEMLABEL
  1329. TCM_HITTEST = TCM_FIRST + 13
  1330. TCM_SETITEMEXTRA = TCM_FIRST + 14
  1331. TCM_ADJUSTRECT = TCM_FIRST + 40
  1332. TCM_SETITEMSIZE = TCM_FIRST + 41
  1333. TCM_REMOVEIMAGE = TCM_FIRST + 42
  1334. TCM_SETPADDING = TCM_FIRST + 43
  1335. TCM_GETROWCOUNT = TCM_FIRST + 44
  1336. TCM_GETTOOLTIPS = TCM_FIRST + 45
  1337. TCM_SETTOOLTIPS = TCM_FIRST + 46
  1338. TCM_GETCURFOCUS = TCM_FIRST + 47
  1339. TCM_SETCURFOCUS = TCM_FIRST + 48
  1340. TCM_SETMINTABWIDTH = TCM_FIRST + 49
  1341. TCM_DESELECTALL = TCM_FIRST + 50
  1342. TCM_HIGHLIGHTITEM = TCM_FIRST + 51
  1343. TCM_SETEXTENDEDSTYLE = TCM_FIRST + 52 # optional wParam == mask
  1344. TCM_GETEXTENDEDSTYLE = TCM_FIRST + 53
  1345. TCM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1346. TCM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1347. TCN_KEYDOWN = TCN_FIRST - 0
  1348. ANIMATE_CLASSA = "SysAnimate32"
  1349. ANIMATE_CLASS = ANIMATE_CLASSA
  1350. ACS_CENTER = 1
  1351. ACS_TRANSPARENT = 2
  1352. ACS_AUTOPLAY = 4
  1353. ACS_TIMER = 8 # don't use threads... use timers
  1354. ACM_OPENA = WM_USER + 100
  1355. ACM_OPENW = WM_USER + 103
  1356. ACM_OPEN = ACM_OPENA
  1357. ACM_PLAY = WM_USER + 101
  1358. ACM_STOP = WM_USER + 102
  1359. ACN_START = 1
  1360. ACN_STOP = 2
  1361. MONTHCAL_CLASSA = "SysMonthCal32"
  1362. MONTHCAL_CLASS = MONTHCAL_CLASSA
  1363. MCM_FIRST = 4096
  1364. MCM_GETCURSEL = MCM_FIRST + 1
  1365. MCM_SETCURSEL = MCM_FIRST + 2
  1366. MCM_GETMAXSELCOUNT = MCM_FIRST + 3
  1367. MCM_SETMAXSELCOUNT = MCM_FIRST + 4
  1368. MCM_GETSELRANGE = MCM_FIRST + 5
  1369. MCM_SETSELRANGE = MCM_FIRST + 6
  1370. MCM_GETMONTHRANGE = MCM_FIRST + 7
  1371. MCM_SETDAYSTATE = MCM_FIRST + 8
  1372. MCM_GETMINREQRECT = MCM_FIRST + 9
  1373. MCM_SETCOLOR = MCM_FIRST + 10
  1374. MCM_GETCOLOR = MCM_FIRST + 11
  1375. MCSC_BACKGROUND = 0 # the background color (between months)
  1376. MCSC_TEXT = 1 # the dates
  1377. MCSC_TITLEBK = 2 # background of the title
  1378. MCSC_TITLETEXT = 3
  1379. MCSC_MONTHBK = 4 # background within the month cal
  1380. MCSC_TRAILINGTEXT = 5 # the text color of header & trailing days
  1381. MCM_SETTODAY = MCM_FIRST + 12
  1382. MCM_GETTODAY = MCM_FIRST + 13
  1383. MCM_HITTEST = MCM_FIRST + 14
  1384. MCHT_TITLE = 65536
  1385. MCHT_CALENDAR = 131072
  1386. MCHT_TODAYLINK = 196608
  1387. MCHT_NEXT = 16777216 # these indicate that hitting
  1388. MCHT_PREV = 33554432 # here will go to the next/prev month
  1389. MCHT_NOWHERE = 0
  1390. MCHT_TITLEBK = MCHT_TITLE
  1391. MCHT_TITLEMONTH = MCHT_TITLE | 1
  1392. MCHT_TITLEYEAR = MCHT_TITLE | 2
  1393. MCHT_TITLEBTNNEXT = MCHT_TITLE | MCHT_NEXT | 3
  1394. MCHT_TITLEBTNPREV = MCHT_TITLE | MCHT_PREV | 3
  1395. MCHT_CALENDARBK = MCHT_CALENDAR
  1396. MCHT_CALENDARDATE = MCHT_CALENDAR | 1
  1397. MCHT_CALENDARDATENEXT = MCHT_CALENDARDATE | MCHT_NEXT
  1398. MCHT_CALENDARDATEPREV = MCHT_CALENDARDATE | MCHT_PREV
  1399. MCHT_CALENDARDAY = MCHT_CALENDAR | 2
  1400. MCHT_CALENDARWEEKNUM = MCHT_CALENDAR | 3
  1401. MCM_SETFIRSTDAYOFWEEK = MCM_FIRST + 15
  1402. MCM_GETFIRSTDAYOFWEEK = MCM_FIRST + 16
  1403. MCM_GETRANGE = MCM_FIRST + 17
  1404. MCM_SETRANGE = MCM_FIRST + 18
  1405. MCM_GETMONTHDELTA = MCM_FIRST + 19
  1406. MCM_SETMONTHDELTA = MCM_FIRST + 20
  1407. MCM_GETMAXTODAYWIDTH = MCM_FIRST + 21
  1408. MCM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1409. MCM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1410. MCN_SELCHANGE = MCN_FIRST + 1
  1411. MCN_GETDAYSTATE = MCN_FIRST + 3
  1412. MCN_SELECT = MCN_FIRST + 4
  1413. MCS_DAYSTATE = 1
  1414. MCS_MULTISELECT = 2
  1415. MCS_WEEKNUMBERS = 4
  1416. MCS_NOTODAYCIRCLE = 8
  1417. MCS_NOTODAY = 8
  1418. GMR_VISIBLE = 0 # visible portion of display
  1419. GMR_DAYSTATE = 1 # above plus the grayed out parts of
  1420. DATETIMEPICK_CLASSA = "SysDateTimePick32"
  1421. DATETIMEPICK_CLASS = DATETIMEPICK_CLASSA
  1422. DTM_FIRST = 4096
  1423. DTM_GETSYSTEMTIME = DTM_FIRST + 1
  1424. DTM_SETSYSTEMTIME = DTM_FIRST + 2
  1425. DTM_GETRANGE = DTM_FIRST + 3
  1426. DTM_SETRANGE = DTM_FIRST + 4
  1427. DTM_SETFORMATA = DTM_FIRST + 5
  1428. DTM_SETFORMATW = DTM_FIRST + 50
  1429. DTM_SETFORMAT = DTM_SETFORMATA
  1430. DTM_SETMCCOLOR = DTM_FIRST + 6
  1431. DTM_GETMCCOLOR = DTM_FIRST + 7
  1432. DTM_GETMONTHCAL = DTM_FIRST + 8
  1433. DTM_SETMCFONT = DTM_FIRST + 9
  1434. DTM_GETMCFONT = DTM_FIRST + 10
  1435. DTS_UPDOWN = 1 # use UPDOWN instead of MONTHCAL
  1436. DTS_SHOWNONE = 2 # allow a NONE selection
  1437. DTS_SHORTDATEFORMAT = (
  1438. 0 # use the short date format (app must forward WM_WININICHANGE messages)
  1439. )
  1440. DTS_LONGDATEFORMAT = (
  1441. 4 # use the long date format (app must forward WM_WININICHANGE messages)
  1442. )
  1443. DTS_TIMEFORMAT = 9 # use the time format (app must forward WM_WININICHANGE messages)
  1444. DTS_APPCANPARSE = 16 # allow user entered strings (app MUST respond to DTN_USERSTRING)
  1445. DTS_RIGHTALIGN = 32 # right-align popup instead of left-align it
  1446. DTN_DATETIMECHANGE = DTN_FIRST + 1 # the systemtime has changed
  1447. DTN_USERSTRINGA = DTN_FIRST + 2 # the user has entered a string
  1448. DTN_USERSTRINGW = DTN_FIRST + 15
  1449. DTN_USERSTRING = DTN_USERSTRINGW
  1450. DTN_WMKEYDOWNA = DTN_FIRST + 3 # modify keydown on app format field (X)
  1451. DTN_WMKEYDOWNW = DTN_FIRST + 16
  1452. DTN_WMKEYDOWN = DTN_WMKEYDOWNA
  1453. DTN_FORMATA = DTN_FIRST + 4 # query display for app format field (X)
  1454. DTN_FORMATW = DTN_FIRST + 17
  1455. DTN_FORMAT = DTN_FORMATA
  1456. DTN_FORMATQUERYA = DTN_FIRST + 5 # query formatting info for app format field (X)
  1457. DTN_FORMATQUERYW = DTN_FIRST + 18
  1458. DTN_FORMATQUERY = DTN_FORMATQUERYA
  1459. DTN_DROPDOWN = DTN_FIRST + 6 # MonthCal has dropped down
  1460. DTN_CLOSEUP = DTN_FIRST + 7 # MonthCal is popping up
  1461. GDTR_MIN = 1
  1462. GDTR_MAX = 2
  1463. GDT_ERROR = -1
  1464. GDT_VALID = 0
  1465. GDT_NONE = 1
  1466. IPM_CLEARADDRESS = WM_USER + 100 # no parameters
  1467. IPM_SETADDRESS = WM_USER + 101 # lparam = TCP/IP address
  1468. IPM_GETADDRESS = (
  1469. WM_USER + 102
  1470. ) # lresult = # of non black fields. lparam = LPDWORD for TCP/IP address
  1471. IPM_SETRANGE = WM_USER + 103 # wparam = field, lparam = range
  1472. IPM_SETFOCUS = WM_USER + 104 # wparam = field
  1473. IPM_ISBLANK = WM_USER + 105 # no parameters
  1474. WC_IPADDRESSA = "SysIPAddress32"
  1475. WC_IPADDRESS = WC_IPADDRESSA
  1476. IPN_FIELDCHANGED = IPN_FIRST - 0
  1477. WC_PAGESCROLLERA = "SysPager"
  1478. WC_PAGESCROLLER = WC_PAGESCROLLERA
  1479. PGS_VERT = 0
  1480. PGS_HORZ = 1
  1481. PGS_AUTOSCROLL = 2
  1482. PGS_DRAGNDROP = 4
  1483. PGF_INVISIBLE = 0 # Scroll button is not visible
  1484. PGF_NORMAL = 1 # Scroll button is in normal state
  1485. PGF_GRAYED = 2 # Scroll button is in grayed state
  1486. PGF_DEPRESSED = 4 # Scroll button is in depressed state
  1487. PGF_HOT = 8 # Scroll button is in hot state
  1488. PGB_TOPORLEFT = 0
  1489. PGB_BOTTOMORRIGHT = 1
  1490. PGM_SETCHILD = PGM_FIRST + 1 # lParam == hwnd
  1491. PGM_RECALCSIZE = PGM_FIRST + 2
  1492. PGM_FORWARDMOUSE = PGM_FIRST + 3
  1493. PGM_SETBKCOLOR = PGM_FIRST + 4
  1494. PGM_GETBKCOLOR = PGM_FIRST + 5
  1495. PGM_SETBORDER = PGM_FIRST + 6
  1496. PGM_GETBORDER = PGM_FIRST + 7
  1497. PGM_SETPOS = PGM_FIRST + 8
  1498. PGM_GETPOS = PGM_FIRST + 9
  1499. PGM_SETBUTTONSIZE = PGM_FIRST + 10
  1500. PGM_GETBUTTONSIZE = PGM_FIRST + 11
  1501. PGM_GETBUTTONSTATE = PGM_FIRST + 12
  1502. PGM_GETDROPTARGET = CCM_GETDROPTARGET
  1503. PGN_SCROLL = PGN_FIRST - 1
  1504. PGF_SCROLLUP = 1
  1505. PGF_SCROLLDOWN = 2
  1506. PGF_SCROLLLEFT = 4
  1507. PGF_SCROLLRIGHT = 8
  1508. PGK_SHIFT = 1
  1509. PGK_CONTROL = 2
  1510. PGK_MENU = 4
  1511. PGN_CALCSIZE = PGN_FIRST - 2
  1512. PGF_CALCWIDTH = 1
  1513. PGF_CALCHEIGHT = 2
  1514. WC_NATIVEFONTCTLA = "NativeFontCtl"
  1515. WC_NATIVEFONTCTL = WC_NATIVEFONTCTLA
  1516. NFS_EDIT = 1
  1517. NFS_STATIC = 2
  1518. NFS_LISTCOMBO = 4
  1519. NFS_BUTTON = 8
  1520. NFS_ALL = 16
  1521. WM_MOUSEHOVER = 673
  1522. WM_MOUSELEAVE = 675
  1523. TME_HOVER = 1
  1524. TME_LEAVE = 2
  1525. TME_QUERY = 1073741824
  1526. TME_CANCEL = -2147483648
  1527. HOVER_DEFAULT = -1
  1528. WSB_PROP_CYVSCROLL = 0x00000001
  1529. WSB_PROP_CXHSCROLL = 0x00000002
  1530. WSB_PROP_CYHSCROLL = 0x00000004
  1531. WSB_PROP_CXVSCROLL = 0x00000008
  1532. WSB_PROP_CXHTHUMB = 0x00000010
  1533. WSB_PROP_CYVTHUMB = 0x00000020
  1534. WSB_PROP_VBKGCOLOR = 0x00000040
  1535. WSB_PROP_HBKGCOLOR = 0x00000080
  1536. WSB_PROP_VSTYLE = 0x00000100
  1537. WSB_PROP_HSTYLE = 0x00000200
  1538. WSB_PROP_WINSTYLE = 0x00000400
  1539. WSB_PROP_PALETTE = 0x00000800
  1540. WSB_PROP_MASK = 0x00000FFF
  1541. FSB_FLAT_MODE = 2
  1542. FSB_ENCARTA_MODE = 1
  1543. FSB_REGULAR_MODE = 0
  1544. def INDEXTOOVERLAYMASK(i):
  1545. return i << 8
  1546. def INDEXTOSTATEIMAGEMASK(i):
  1547. return i << 12