commctrl.py 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549
  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 = 64 # 0x0040 // ignored unless TBSTYLE_EX_MIXEDBUTTONS is set
  261. BTNS_WHOLEDROPDOWN = 128 # 0x0080 // draw drop-down arrow, but without split arrow section
  262. TBCDRF_NOEDGES = 65536 # Don't draw button edges
  263. TBCDRF_HILITEHOTTRACK = 131072 # Use color of the button bk when hottracked
  264. TBCDRF_NOOFFSET = 262144 # Don't offset button if pressed
  265. TBCDRF_NOMARK = 524288 # Don't draw default highlight of image/text for TBSTATE_MARKED
  266. TBCDRF_NOETCHEDEFFECT = 1048576 # Don't draw etched effect for disabled items
  267. TB_ENABLEBUTTON = (WM_USER + 1)
  268. TB_CHECKBUTTON = (WM_USER + 2)
  269. TB_PRESSBUTTON = (WM_USER + 3)
  270. TB_HIDEBUTTON = (WM_USER + 4)
  271. TB_INDETERMINATE = (WM_USER + 5)
  272. TB_MARKBUTTON = (WM_USER + 6)
  273. TB_ISBUTTONENABLED = (WM_USER + 9)
  274. TB_ISBUTTONCHECKED = (WM_USER + 10)
  275. TB_ISBUTTONPRESSED = (WM_USER + 11)
  276. TB_ISBUTTONHIDDEN = (WM_USER + 12)
  277. TB_ISBUTTONINDETERMINATE = (WM_USER + 13)
  278. TB_ISBUTTONHIGHLIGHTED = (WM_USER + 14)
  279. TB_SETSTATE = (WM_USER + 17)
  280. TB_GETSTATE = (WM_USER + 18)
  281. TB_ADDBITMAP = (WM_USER + 19)
  282. HINST_COMMCTRL = -1
  283. IDB_STD_SMALL_COLOR = 0
  284. IDB_STD_LARGE_COLOR = 1
  285. IDB_VIEW_SMALL_COLOR = 4
  286. IDB_VIEW_LARGE_COLOR = 5
  287. IDB_HIST_SMALL_COLOR = 8
  288. IDB_HIST_LARGE_COLOR = 9
  289. STD_CUT = 0
  290. STD_COPY = 1
  291. STD_PASTE = 2
  292. STD_UNDO = 3
  293. STD_REDOW = 4
  294. STD_DELETE = 5
  295. STD_FILENEW = 6
  296. STD_FILEOPEN = 7
  297. STD_FILESAVE = 8
  298. STD_PRINTPRE = 9
  299. STD_PROPERTIES = 10
  300. STD_HELP = 11
  301. STD_FIND = 12
  302. STD_REPLACE = 13
  303. STD_PRINT = 14
  304. VIEW_LARGEICONS = 0
  305. VIEW_SMALLICONS = 1
  306. VIEW_LIST = 2
  307. VIEW_DETAILS = 3
  308. VIEW_SORTNAME = 4
  309. VIEW_SORTSIZE = 5
  310. VIEW_SORTDATE = 6
  311. VIEW_SORTTYPE = 7
  312. VIEW_PARENTFOLDER = 8
  313. VIEW_NETCONNECT = 9
  314. VIEW_NETDISCONNECT = 10
  315. VIEW_NEWFOLDER = 11
  316. VIEW_VIEWMENU = 12
  317. HIST_BACK = 0
  318. HIST_FORWARD = 1
  319. HIST_FAVORITES = 2
  320. HIST_ADDTOFAVORITES = 3
  321. HIST_VIEWTREE = 4
  322. TB_ADDBUTTONSA = (WM_USER + 20)
  323. TB_INSERTBUTTONA = (WM_USER + 21)
  324. TB_ADDBUTTONS = (WM_USER + 20)
  325. TB_INSERTBUTTON = (WM_USER + 21)
  326. TB_DELETEBUTTON = (WM_USER + 22)
  327. TB_GETBUTTON = (WM_USER + 23)
  328. TB_BUTTONCOUNT = (WM_USER + 24)
  329. TB_COMMANDTOINDEX = (WM_USER + 25)
  330. TB_SAVERESTOREA = (WM_USER + 26)
  331. TB_SAVERESTOREW = (WM_USER + 76)
  332. TB_CUSTOMIZE = (WM_USER + 27)
  333. TB_ADDSTRINGA = (WM_USER + 28)
  334. TB_ADDSTRINGW = (WM_USER + 77)
  335. TB_GETITEMRECT = (WM_USER + 29)
  336. TB_BUTTONSTRUCTSIZE = (WM_USER + 30)
  337. TB_SETBUTTONSIZE = (WM_USER + 31)
  338. TB_SETBITMAPSIZE = (WM_USER + 32)
  339. TB_AUTOSIZE = (WM_USER + 33)
  340. TB_GETTOOLTIPS = (WM_USER + 35)
  341. TB_SETTOOLTIPS = (WM_USER + 36)
  342. TB_SETPARENT = (WM_USER + 37)
  343. TB_SETROWS = (WM_USER + 39)
  344. TB_GETROWS = (WM_USER + 40)
  345. TB_SETCMDID = (WM_USER + 42)
  346. TB_CHANGEBITMAP = (WM_USER + 43)
  347. TB_GETBITMAP = (WM_USER + 44)
  348. TB_GETBUTTONTEXTA = (WM_USER + 45)
  349. TB_GETBUTTONTEXTW = (WM_USER + 75)
  350. TB_REPLACEBITMAP = (WM_USER + 46)
  351. TB_SETINDENT = (WM_USER + 47)
  352. TB_SETIMAGELIST = (WM_USER + 48)
  353. TB_GETIMAGELIST = (WM_USER + 49)
  354. TB_LOADIMAGES = (WM_USER + 50)
  355. TB_GETRECT = (WM_USER + 51) # wParam is the Cmd instead of index
  356. TB_SETHOTIMAGELIST = (WM_USER + 52)
  357. TB_GETHOTIMAGELIST = (WM_USER + 53)
  358. TB_SETDISABLEDIMAGELIST = (WM_USER + 54)
  359. TB_GETDISABLEDIMAGELIST = (WM_USER + 55)
  360. TB_SETSTYLE = (WM_USER + 56)
  361. TB_GETSTYLE = (WM_USER + 57)
  362. TB_GETBUTTONSIZE = (WM_USER + 58)
  363. TB_SETBUTTONWIDTH = (WM_USER + 59)
  364. TB_SETMAXTEXTROWS = (WM_USER + 60)
  365. TB_GETTEXTROWS = (WM_USER + 61)
  366. TB_GETBUTTONTEXT = TB_GETBUTTONTEXTW
  367. TB_SAVERESTORE = TB_SAVERESTOREW
  368. TB_ADDSTRING = TB_ADDSTRINGW
  369. TB_GETBUTTONTEXT = TB_GETBUTTONTEXTA
  370. TB_SAVERESTORE = TB_SAVERESTOREA
  371. TB_ADDSTRING = TB_ADDSTRINGA
  372. TB_GETOBJECT = (WM_USER + 62) # wParam == IID, lParam void **ppv
  373. TB_GETHOTITEM = (WM_USER + 71)
  374. TB_SETHOTITEM = (WM_USER + 72) # wParam == iHotItem
  375. TB_SETANCHORHIGHLIGHT = (WM_USER + 73) # wParam == TRUE/FALSE
  376. TB_GETANCHORHIGHLIGHT = (WM_USER + 74)
  377. TB_MAPACCELERATORA = (WM_USER + 78) # wParam == ch, lParam int * pidBtn
  378. TBIMHT_AFTER = 1 # TRUE = insert After iButton, otherwise before
  379. TBIMHT_BACKGROUND = 2 # TRUE iff missed buttons completely
  380. TB_GETINSERTMARK = (WM_USER + 79) # lParam == LPTBINSERTMARK
  381. TB_SETINSERTMARK = (WM_USER + 80) # lParam == LPTBINSERTMARK
  382. TB_INSERTMARKHITTEST = (WM_USER + 81) # wParam == LPPOINT lParam == LPTBINSERTMARK
  383. TB_MOVEBUTTON = (WM_USER + 82)
  384. TB_GETMAXSIZE = (WM_USER + 83) # lParam == LPSIZE
  385. TB_SETEXTENDEDSTYLE = (WM_USER + 84) # For TBSTYLE_EX_*
  386. TB_GETEXTENDEDSTYLE = (WM_USER + 85) # For TBSTYLE_EX_*
  387. TB_GETPADDING = (WM_USER + 86)
  388. TB_SETPADDING = (WM_USER + 87)
  389. TB_SETINSERTMARKCOLOR = (WM_USER + 88)
  390. TB_GETINSERTMARKCOLOR = (WM_USER + 89)
  391. TB_SETCOLORSCHEME = CCM_SETCOLORSCHEME # lParam is color scheme
  392. TB_GETCOLORSCHEME = CCM_GETCOLORSCHEME # fills in COLORSCHEME pointed to by lParam
  393. TB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  394. TB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  395. TB_MAPACCELERATORW = (WM_USER + 90) # wParam == ch, lParam int * pidBtn
  396. TB_MAPACCELERATOR = TB_MAPACCELERATORW
  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 = (TBN_FIRST - 14) # this is sent when the user clicks down on a button then drags off the button
  438. TBN_DELETINGBUTTON = (TBN_FIRST - 15) # uses TBNOTIFY
  439. TBN_GETDISPINFOA = (TBN_FIRST - 16) # This is sent when the toolbar needs some display information
  440. TBN_GETDISPINFOW = (TBN_FIRST - 17) # This is sent when the toolbar needs some display information
  441. TBN_GETINFOTIPA = (TBN_FIRST - 18)
  442. TBN_GETINFOTIPW = (TBN_FIRST - 19)
  443. TBN_GETINFOTIP = TBN_GETINFOTIPA
  444. TBNF_IMAGE = 1
  445. TBNF_TEXT = 2
  446. TBNF_DI_SETITEM = 268435456
  447. TBN_GETDISPINFO = TBN_GETDISPINFOA
  448. TBDDRET_DEFAULT = 0
  449. TBDDRET_NODEFAULT = 1
  450. TBDDRET_TREATPRESSED = 2 # Treat as a standard press button
  451. TBN_GETBUTTONINFO = TBN_GETBUTTONINFOA
  452. REBARCLASSNAMEA = "ReBarWindow32"
  453. REBARCLASSNAME = REBARCLASSNAMEA
  454. RBIM_IMAGELIST = 1
  455. RBS_TOOLTIPS = 256
  456. RBS_VARHEIGHT = 512
  457. RBS_BANDBORDERS = 1024
  458. RBS_FIXEDORDER = 2048
  459. RBS_REGISTERDROP = 4096
  460. RBS_AUTOSIZE = 8192
  461. RBS_VERTICALGRIPPER = 16384 # this always has the vertical gripper (default for horizontal mode)
  462. RBS_DBLCLKTOGGLE = 32768
  463. RBS_TOOLTIPS = 256
  464. RBS_VARHEIGHT = 512
  465. RBS_BANDBORDERS = 1024
  466. RBS_FIXEDORDER = 2048
  467. RBBS_BREAK = 1 # break to new line
  468. RBBS_FIXEDSIZE = 2 # band can't be sized
  469. RBBS_CHILDEDGE = 4 # edge around top & bottom of child window
  470. RBBS_HIDDEN = 8 # don't show
  471. RBBS_NOVERT = 16 # don't show when vertical
  472. RBBS_FIXEDBMP = 32 # bitmap doesn't move during band resize
  473. RBBS_VARIABLEHEIGHT = 64 # allow autosizing of this child vertically
  474. RBBS_GRIPPERALWAYS = 128 # always show the gripper
  475. RBBS_NOGRIPPER = 256 # never show the gripper
  476. RBBIM_STYLE = 1
  477. RBBIM_COLORS = 2
  478. RBBIM_TEXT = 4
  479. RBBIM_IMAGE = 8
  480. RBBIM_CHILD = 16
  481. RBBIM_CHILDSIZE = 32
  482. RBBIM_SIZE = 64
  483. RBBIM_BACKGROUND = 128
  484. RBBIM_ID = 256
  485. RBBIM_IDEALSIZE = 512
  486. RBBIM_LPARAM = 1024
  487. RB_INSERTBANDA = (WM_USER + 1)
  488. RB_DELETEBAND = (WM_USER + 2)
  489. RB_GETBARINFO = (WM_USER + 3)
  490. RB_SETBARINFO = (WM_USER + 4)
  491. RB_GETBANDINFO = (WM_USER + 5)
  492. RB_SETBANDINFOA = (WM_USER + 6)
  493. RB_SETPARENT = (WM_USER + 7)
  494. RB_HITTEST = (WM_USER + 8)
  495. RB_GETRECT = (WM_USER + 9)
  496. RB_INSERTBANDW = (WM_USER + 10)
  497. RB_SETBANDINFOW = (WM_USER + 11)
  498. RB_GETBANDCOUNT = (WM_USER + 12)
  499. RB_GETROWCOUNT = (WM_USER + 13)
  500. RB_GETROWHEIGHT = (WM_USER + 14)
  501. RB_IDTOINDEX = (WM_USER + 16) # wParam == id
  502. RB_GETTOOLTIPS = (WM_USER + 17)
  503. RB_SETTOOLTIPS = (WM_USER + 18)
  504. RB_SETBKCOLOR = (WM_USER + 19) # sets the default BK color
  505. RB_GETBKCOLOR = (WM_USER + 20) # defaults to CLR_NONE
  506. RB_SETTEXTCOLOR = (WM_USER + 21)
  507. RB_GETTEXTCOLOR = (WM_USER + 22) # defaults to 0x00000000
  508. RB_SIZETORECT = (WM_USER + 23) # resize the rebar/break bands and such to this rect (lparam)
  509. RB_SETCOLORSCHEME = CCM_SETCOLORSCHEME # lParam is color scheme
  510. RB_GETCOLORSCHEME = CCM_GETCOLORSCHEME # fills in COLORSCHEME pointed to by lParam
  511. RB_INSERTBAND = RB_INSERTBANDA
  512. RB_SETBANDINFO = RB_SETBANDINFOA
  513. RB_BEGINDRAG = (WM_USER + 24)
  514. RB_ENDDRAG = (WM_USER + 25)
  515. RB_DRAGMOVE = (WM_USER + 26)
  516. RB_GETBARHEIGHT = (WM_USER + 27)
  517. RB_GETBANDINFOW = (WM_USER + 28)
  518. RB_GETBANDINFOA = (WM_USER + 29)
  519. RB_GETBANDINFO = RB_GETBANDINFOA
  520. RB_MINIMIZEBAND = (WM_USER + 30)
  521. RB_MAXIMIZEBAND = (WM_USER + 31)
  522. RB_GETDROPTARGET = (CCM_GETDROPTARGET)
  523. RB_GETBANDBORDERS = (WM_USER + 34) # returns in lparam = lprc the amount of edges added to band wparam
  524. RB_SHOWBAND = (WM_USER + 35) # show/hide band
  525. RB_SETPALETTE = (WM_USER + 37)
  526. RB_GETPALETTE = (WM_USER + 38)
  527. RB_MOVEBAND = (WM_USER + 39)
  528. RB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  529. RB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  530. RBN_HEIGHTCHANGE = (RBN_FIRST - 0)
  531. RBN_GETOBJECT = (RBN_FIRST - 1)
  532. RBN_LAYOUTCHANGED = (RBN_FIRST - 2)
  533. RBN_AUTOSIZE = (RBN_FIRST - 3)
  534. RBN_BEGINDRAG = (RBN_FIRST - 4)
  535. RBN_ENDDRAG = (RBN_FIRST - 5)
  536. RBN_DELETINGBAND = (RBN_FIRST - 6) # Uses NMREBAR
  537. RBN_DELETEDBAND = (RBN_FIRST - 7) # Uses NMREBAR
  538. RBN_CHILDSIZE = (RBN_FIRST - 8)
  539. RBNM_ID = 1
  540. RBNM_STYLE = 2
  541. RBNM_LPARAM = 4
  542. RBHT_NOWHERE = 1
  543. RBHT_CAPTION = 2
  544. RBHT_CLIENT = 3
  545. RBHT_GRABBER = 4
  546. TOOLTIPS_CLASSA = "tooltips_class32"
  547. TOOLTIPS_CLASS = TOOLTIPS_CLASSA
  548. TTS_ALWAYSTIP = 1
  549. TTS_NOPREFIX = 2
  550. TTF_IDISHWND = 1
  551. TTF_CENTERTIP = 2
  552. TTF_RTLREADING = 4
  553. TTF_SUBCLASS = 16
  554. TTF_TRACK = 32
  555. TTF_ABSOLUTE = 128
  556. TTF_TRANSPARENT = 256
  557. TTF_DI_SETITEM = 32768 # valid only on the TTN_NEEDTEXT callback
  558. TTDT_AUTOMATIC = 0
  559. TTDT_RESHOW = 1
  560. TTDT_AUTOPOP = 2
  561. TTDT_INITIAL = 3
  562. TTM_ACTIVATE = (WM_USER + 1)
  563. TTM_SETDELAYTIME = (WM_USER + 3)
  564. TTM_ADDTOOLA = (WM_USER + 4)
  565. TTM_ADDTOOLW = (WM_USER + 50)
  566. TTM_DELTOOLA = (WM_USER + 5)
  567. TTM_DELTOOLW = (WM_USER + 51)
  568. TTM_NEWTOOLRECTA = (WM_USER + 6)
  569. TTM_NEWTOOLRECTW = (WM_USER + 52)
  570. TTM_RELAYEVENT = (WM_USER + 7)
  571. TTM_GETTOOLINFOA = (WM_USER + 8)
  572. TTM_GETTOOLINFOW = (WM_USER + 53)
  573. TTM_SETTOOLINFOA = (WM_USER + 9)
  574. TTM_SETTOOLINFOW = (WM_USER + 54)
  575. TTM_HITTESTA = (WM_USER +10)
  576. TTM_HITTESTW = (WM_USER +55)
  577. TTM_GETTEXTA = (WM_USER +11)
  578. TTM_GETTEXTW = (WM_USER +56)
  579. TTM_UPDATETIPTEXTA = (WM_USER +12)
  580. TTM_UPDATETIPTEXTW = (WM_USER +57)
  581. TTM_GETTOOLCOUNT = (WM_USER +13)
  582. TTM_ENUMTOOLSA = (WM_USER +14)
  583. TTM_ENUMTOOLSW = (WM_USER +58)
  584. TTM_GETCURRENTTOOLA = (WM_USER + 15)
  585. TTM_GETCURRENTTOOLW = (WM_USER + 59)
  586. TTM_WINDOWFROMPOINT = (WM_USER + 16)
  587. TTM_TRACKACTIVATE = (WM_USER + 17) # wParam = TRUE/FALSE start end lparam = LPTOOLINFO
  588. TTM_TRACKPOSITION = (WM_USER + 18) # lParam = dwPos
  589. TTM_SETTIPBKCOLOR = (WM_USER + 19)
  590. TTM_SETTIPTEXTCOLOR = (WM_USER + 20)
  591. TTM_GETDELAYTIME = (WM_USER + 21)
  592. TTM_GETTIPBKCOLOR = (WM_USER + 22)
  593. TTM_GETTIPTEXTCOLOR = (WM_USER + 23)
  594. TTM_SETMAXTIPWIDTH = (WM_USER + 24)
  595. TTM_GETMAXTIPWIDTH = (WM_USER + 25)
  596. TTM_SETMARGIN = (WM_USER + 26) # lParam = lprc
  597. TTM_GETMARGIN = (WM_USER + 27) # lParam = lprc
  598. TTM_POP = (WM_USER + 28)
  599. TTM_UPDATE = (WM_USER + 29)
  600. TTM_ADDTOOL = TTM_ADDTOOLA
  601. TTM_DELTOOL = TTM_DELTOOLA
  602. TTM_NEWTOOLRECT = TTM_NEWTOOLRECTA
  603. TTM_GETTOOLINFO = TTM_GETTOOLINFOA
  604. TTM_SETTOOLINFO = TTM_SETTOOLINFOA
  605. TTM_HITTEST = TTM_HITTESTA
  606. TTM_GETTEXT = TTM_GETTEXTA
  607. TTM_UPDATETIPTEXT = TTM_UPDATETIPTEXTA
  608. TTM_ENUMTOOLS = TTM_ENUMTOOLSA
  609. TTM_GETCURRENTTOOL = TTM_GETCURRENTTOOLA
  610. TTN_GETDISPINFOA = (TTN_FIRST - 0)
  611. TTN_GETDISPINFOW = (TTN_FIRST - 10)
  612. TTN_SHOW = (TTN_FIRST - 1)
  613. TTN_POP = (TTN_FIRST - 2)
  614. TTN_GETDISPINFO = TTN_GETDISPINFOA
  615. TTN_NEEDTEXT = TTN_GETDISPINFO
  616. TTN_NEEDTEXTA = TTN_GETDISPINFOA
  617. TTN_NEEDTEXTW = TTN_GETDISPINFOW
  618. SBARS_SIZEGRIP = 256
  619. SBARS_TOOLTIPS = 2048
  620. STATUSCLASSNAMEA = "msctls_statusbar32"
  621. STATUSCLASSNAME = STATUSCLASSNAMEA
  622. SB_SETTEXTA = (WM_USER+1)
  623. SB_SETTEXTW = (WM_USER+11)
  624. SB_GETTEXTA = (WM_USER+2)
  625. SB_GETTEXTW = (WM_USER+13)
  626. SB_GETTEXTLENGTHA = (WM_USER+3)
  627. SB_GETTEXTLENGTHW = (WM_USER+12)
  628. SB_GETTEXT = SB_GETTEXTA
  629. SB_SETTEXT = SB_SETTEXTA
  630. SB_GETTEXTLENGTH = SB_GETTEXTLENGTHA
  631. SB_SETPARTS = (WM_USER+4)
  632. SB_GETPARTS = (WM_USER+6)
  633. SB_GETBORDERS = (WM_USER+7)
  634. SB_SETMINHEIGHT = (WM_USER+8)
  635. SB_SIMPLE = (WM_USER+9)
  636. SB_GETRECT = (WM_USER+10)
  637. SB_ISSIMPLE = (WM_USER+14)
  638. SB_SETICON = (WM_USER+15)
  639. SB_SETTIPTEXTA = (WM_USER+16)
  640. SB_SETTIPTEXTW = (WM_USER+17)
  641. SB_GETTIPTEXTA = (WM_USER+18)
  642. SB_GETTIPTEXTW = (WM_USER+19)
  643. SB_GETICON = (WM_USER+20)
  644. SB_SETTIPTEXT = SB_SETTIPTEXTA
  645. SB_GETTIPTEXT = SB_GETTIPTEXTA
  646. SB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  647. SB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  648. SBT_OWNERDRAW = 4096
  649. SBT_NOBORDERS = 256
  650. SBT_POPOUT = 512
  651. SBT_RTLREADING = 1024
  652. SBT_NOTABPARSING = 2048
  653. SBT_TOOLTIPS = 2048
  654. SB_SETBKCOLOR = CCM_SETBKCOLOR # lParam = bkColor
  655. SBN_SIMPLEMODECHANGE = (SBN_FIRST - 0)
  656. TRACKBAR_CLASSA = "msctls_trackbar32"
  657. TRACKBAR_CLASS = TRACKBAR_CLASSA
  658. TBS_AUTOTICKS = 1
  659. TBS_VERT = 2
  660. TBS_HORZ = 0
  661. TBS_TOP = 4
  662. TBS_BOTTOM = 0
  663. TBS_LEFT = 4
  664. TBS_RIGHT = 0
  665. TBS_BOTH = 8
  666. TBS_NOTICKS = 16
  667. TBS_ENABLESELRANGE = 32
  668. TBS_FIXEDLENGTH = 64
  669. TBS_NOTHUMB = 128
  670. TBS_TOOLTIPS = 256
  671. TBM_GETPOS = (WM_USER)
  672. TBM_GETRANGEMIN = (WM_USER+1)
  673. TBM_GETRANGEMAX = (WM_USER+2)
  674. TBM_GETTIC = (WM_USER+3)
  675. TBM_SETTIC = (WM_USER+4)
  676. TBM_SETPOS = (WM_USER+5)
  677. TBM_SETRANGE = (WM_USER+6)
  678. TBM_SETRANGEMIN = (WM_USER+7)
  679. TBM_SETRANGEMAX = (WM_USER+8)
  680. TBM_CLEARTICS = (WM_USER+9)
  681. TBM_SETSEL = (WM_USER+10)
  682. TBM_SETSELSTART = (WM_USER+11)
  683. TBM_SETSELEND = (WM_USER+12)
  684. TBM_GETPTICS = (WM_USER+14)
  685. TBM_GETTICPOS = (WM_USER+15)
  686. TBM_GETNUMTICS = (WM_USER+16)
  687. TBM_GETSELSTART = (WM_USER+17)
  688. TBM_GETSELEND = (WM_USER+18)
  689. TBM_CLEARSEL = (WM_USER+19)
  690. TBM_SETTICFREQ = (WM_USER+20)
  691. TBM_SETPAGESIZE = (WM_USER+21)
  692. TBM_GETPAGESIZE = (WM_USER+22)
  693. TBM_SETLINESIZE = (WM_USER+23)
  694. TBM_GETLINESIZE = (WM_USER+24)
  695. TBM_GETTHUMBRECT = (WM_USER+25)
  696. TBM_GETCHANNELRECT = (WM_USER+26)
  697. TBM_SETTHUMBLENGTH = (WM_USER+27)
  698. TBM_GETTHUMBLENGTH = (WM_USER+28)
  699. TBM_SETTOOLTIPS = (WM_USER+29)
  700. TBM_GETTOOLTIPS = (WM_USER+30)
  701. TBM_SETTIPSIDE = (WM_USER+31)
  702. TBTS_TOP = 0
  703. TBTS_LEFT = 1
  704. TBTS_BOTTOM = 2
  705. TBTS_RIGHT = 3
  706. TBM_SETBUDDY = (WM_USER+32) # wparam = BOOL fLeft; (or right)
  707. TBM_GETBUDDY = (WM_USER+33) # wparam = BOOL fLeft; (or right)
  708. TBM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  709. TBM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  710. TB_LINEUP = 0
  711. TB_LINEDOWN = 1
  712. TB_PAGEUP = 2
  713. TB_PAGEDOWN = 3
  714. TB_THUMBPOSITION = 4
  715. TB_THUMBTRACK = 5
  716. TB_TOP = 6
  717. TB_BOTTOM = 7
  718. TB_ENDTRACK = 8
  719. TBCD_TICS = 1
  720. TBCD_THUMB = 2
  721. TBCD_CHANNEL = 3
  722. DL_BEGINDRAG = (WM_USER+133)
  723. DL_DRAGGING = (WM_USER+134)
  724. DL_DROPPED = (WM_USER+135)
  725. DL_CANCELDRAG = (WM_USER+136)
  726. DL_CURSORSET = 0
  727. DL_STOPCURSOR = 1
  728. DL_COPYCURSOR = 2
  729. DL_MOVECURSOR = 3
  730. DRAGLISTMSGSTRING = "commctrl_DragListMsg"
  731. UPDOWN_CLASSA = "msctls_updown32"
  732. UPDOWN_CLASS = UPDOWN_CLASSA
  733. UD_MAXVAL = 32767
  734. UD_MINVAL = (-UD_MAXVAL)
  735. UDS_WRAP = 1
  736. UDS_SETBUDDYINT = 2
  737. UDS_ALIGNRIGHT = 4
  738. UDS_ALIGNLEFT = 8
  739. UDS_AUTOBUDDY = 16
  740. UDS_ARROWKEYS = 32
  741. UDS_HORZ = 64
  742. UDS_NOTHOUSANDS = 128
  743. UDS_HOTTRACK = 256
  744. UDM_SETRANGE = (WM_USER+101)
  745. UDM_GETRANGE = (WM_USER+102)
  746. UDM_SETPOS = (WM_USER+103)
  747. UDM_GETPOS = (WM_USER+104)
  748. UDM_SETBUDDY = (WM_USER+105)
  749. UDM_GETBUDDY = (WM_USER+106)
  750. UDM_SETACCEL = (WM_USER+107)
  751. UDM_GETACCEL = (WM_USER+108)
  752. UDM_SETBASE = (WM_USER+109)
  753. UDM_GETBASE = (WM_USER+110)
  754. UDM_SETRANGE32 = (WM_USER+111)
  755. UDM_GETRANGE32 = (WM_USER+112) # wParam & lParam are LPINT
  756. UDM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  757. UDM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  758. UDN_DELTAPOS = (UDN_FIRST - 1)
  759. PROGRESS_CLASSA = "msctls_progress32"
  760. PROGRESS_CLASS = PROGRESS_CLASSA
  761. PBS_SMOOTH = 1
  762. PBS_VERTICAL = 4
  763. PBM_SETRANGE = (WM_USER+1)
  764. PBM_SETPOS = (WM_USER+2)
  765. PBM_DELTAPOS = (WM_USER+3)
  766. PBM_SETSTEP = (WM_USER+4)
  767. PBM_STEPIT = (WM_USER+5)
  768. PBM_SETRANGE32 = (WM_USER+6) # lParam = high, wParam = low
  769. PBM_GETRANGE = (WM_USER+7) # wParam = return (TRUE ? low : high). lParam = PPBRANGE or NULL
  770. PBM_GETPOS = (WM_USER+8)
  771. PBM_SETBARCOLOR = (WM_USER+9) # lParam = bar color
  772. PBM_SETBKCOLOR = CCM_SETBKCOLOR # lParam = bkColor
  773. HOTKEYF_SHIFT = 1
  774. HOTKEYF_CONTROL = 2
  775. HOTKEYF_ALT = 4
  776. HOTKEYF_EXT = 128
  777. HOTKEYF_EXT = 8
  778. HKCOMB_NONE = 1
  779. HKCOMB_S = 2
  780. HKCOMB_C = 4
  781. HKCOMB_A = 8
  782. HKCOMB_SC = 16
  783. HKCOMB_SA = 32
  784. HKCOMB_CA = 64
  785. HKCOMB_SCA = 128
  786. HKM_SETHOTKEY = (WM_USER+1)
  787. HKM_GETHOTKEY = (WM_USER+2)
  788. HKM_SETRULES = (WM_USER+3)
  789. HOTKEY_CLASSA = "msctls_hotkey32"
  790. HOTKEY_CLASS = HOTKEY_CLASSA
  791. CCS_TOP = 0x00000001
  792. CCS_NOMOVEY = 0x00000002
  793. CCS_BOTTOM = 0x00000003
  794. CCS_NORESIZE = 0x00000004
  795. CCS_NOPARENTALIGN = 0x00000008
  796. CCS_ADJUSTABLE = 0x00000020
  797. CCS_NODIVIDER = 0x00000040
  798. CCS_VERT = 0x00000080
  799. CCS_LEFT = (CCS_VERT | CCS_TOP)
  800. CCS_RIGHT = (CCS_VERT | CCS_BOTTOM)
  801. CCS_NOMOVEX = (CCS_VERT | CCS_NOMOVEY)
  802. WC_LISTVIEWA = "SysListView32"
  803. WC_LISTVIEW = WC_LISTVIEWA
  804. LVS_ICON = 0
  805. LVS_REPORT = 1
  806. LVS_SMALLICON = 2
  807. LVS_LIST = 3
  808. LVS_TYPEMASK = 3
  809. LVS_SINGLESEL = 4
  810. LVS_SHOWSELALWAYS = 8
  811. LVS_SORTASCENDING = 16
  812. LVS_SORTDESCENDING = 32
  813. LVS_SHAREIMAGELISTS = 64
  814. LVS_NOLABELWRAP = 128
  815. LVS_AUTOARRANGE = 256
  816. LVS_EDITLABELS = 512
  817. LVS_OWNERDATA = 4096
  818. LVS_NOSCROLL = 8192
  819. LVS_TYPESTYLEMASK = 64512
  820. LVS_ALIGNTOP = 0
  821. LVS_ALIGNLEFT = 2048
  822. LVS_ALIGNMASK = 3072
  823. LVS_OWNERDRAWFIXED = 1024
  824. LVS_NOCOLUMNHEADER = 16384
  825. LVS_NOSORTHEADER = 32768
  826. LVM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  827. LVM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  828. LVM_GETBKCOLOR = (LVM_FIRST + 0)
  829. LVM_SETBKCOLOR = (LVM_FIRST + 1)
  830. LVM_GETIMAGELIST = (LVM_FIRST + 2)
  831. LVSIL_NORMAL = 0
  832. LVSIL_SMALL = 1
  833. LVSIL_STATE = 2
  834. LVM_SETIMAGELIST = (LVM_FIRST + 3)
  835. LVM_GETITEMCOUNT = (LVM_FIRST + 4)
  836. LVIF_TEXT = 1
  837. LVIF_IMAGE = 2
  838. LVIF_PARAM = 4
  839. LVIF_STATE = 8
  840. LVIF_INDENT = 16
  841. LVIF_NORECOMPUTE = 2048
  842. LVIS_FOCUSED = 1
  843. LVIS_SELECTED = 2
  844. LVIS_CUT = 4
  845. LVIS_DROPHILITED = 8
  846. LVIS_ACTIVATING = 32
  847. LVIS_OVERLAYMASK = 3840
  848. LVIS_STATEIMAGEMASK = 61440
  849. I_INDENTCALLBACK = (-1)
  850. LPSTR_TEXTCALLBACKA = -1
  851. LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKA
  852. I_IMAGECALLBACK = (-1)
  853. LVM_GETITEMA = (LVM_FIRST + 5)
  854. LVM_GETITEMW = (LVM_FIRST + 75)
  855. LVM_GETITEM = LVM_GETITEMW
  856. LVM_GETITEM = LVM_GETITEMA
  857. LVM_SETITEMA = (LVM_FIRST + 6)
  858. LVM_SETITEMW = (LVM_FIRST + 76)
  859. LVM_SETITEM = LVM_SETITEMW
  860. LVM_SETITEM = LVM_SETITEMA
  861. LVM_INSERTITEMA = (LVM_FIRST + 7)
  862. LVM_INSERTITEMW = (LVM_FIRST + 77)
  863. LVM_INSERTITEM = LVM_INSERTITEMA
  864. LVM_DELETEITEM = (LVM_FIRST + 8)
  865. LVM_DELETEALLITEMS = (LVM_FIRST + 9)
  866. LVM_GETCALLBACKMASK = (LVM_FIRST + 10)
  867. LVM_SETCALLBACKMASK = (LVM_FIRST + 11)
  868. LVNI_ALL = 0
  869. LVNI_FOCUSED = 1
  870. LVNI_SELECTED = 2
  871. LVNI_CUT = 4
  872. LVNI_DROPHILITED = 8
  873. LVNI_ABOVE = 256
  874. LVNI_BELOW = 512
  875. LVNI_TOLEFT = 1024
  876. LVNI_TORIGHT = 2048
  877. LVM_GETNEXTITEM = (LVM_FIRST + 12)
  878. LVFI_PARAM = 1
  879. LVFI_STRING = 2
  880. LVFI_PARTIAL = 8
  881. LVFI_WRAP = 32
  882. LVFI_NEARESTXY = 64
  883. LVM_FINDITEMA = (LVM_FIRST + 13)
  884. LVM_FINDITEMW = (LVM_FIRST + 83)
  885. LVM_FINDITEM = LVM_FINDITEMA
  886. LVIR_BOUNDS = 0
  887. LVIR_ICON = 1
  888. LVIR_LABEL = 2
  889. LVIR_SELECTBOUNDS = 3
  890. LVM_GETITEMRECT = (LVM_FIRST + 14)
  891. LVM_SETITEMPOSITION = (LVM_FIRST + 15)
  892. LVM_GETITEMPOSITION = (LVM_FIRST + 16)
  893. LVM_GETSTRINGWIDTHA = (LVM_FIRST + 17)
  894. LVM_GETSTRINGWIDTHW = (LVM_FIRST + 87)
  895. LVM_GETSTRINGWIDTH = LVM_GETSTRINGWIDTHA
  896. LVHT_NOWHERE = 1
  897. LVHT_ONITEMICON = 2
  898. LVHT_ONITEMLABEL = 4
  899. LVHT_ONITEMSTATEICON = 8
  900. LVHT_ONITEM = (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)
  901. LVHT_ABOVE = 8
  902. LVHT_BELOW = 16
  903. LVHT_TORIGHT = 32
  904. LVHT_TOLEFT = 64
  905. LVM_HITTEST = (LVM_FIRST + 18)
  906. LVM_ENSUREVISIBLE = (LVM_FIRST + 19)
  907. LVM_SCROLL = (LVM_FIRST + 20)
  908. LVM_REDRAWITEMS = (LVM_FIRST + 21)
  909. LVA_DEFAULT = 0
  910. LVA_ALIGNLEFT = 1
  911. LVA_ALIGNTOP = 2
  912. LVA_SNAPTOGRID = 5
  913. LVM_ARRANGE = (LVM_FIRST + 22)
  914. LVM_EDITLABELA = (LVM_FIRST + 23)
  915. LVM_EDITLABELW = (LVM_FIRST + 118)
  916. LVM_EDITLABEL = LVM_EDITLABELW
  917. LVM_EDITLABEL = LVM_EDITLABELA
  918. LVM_GETEDITCONTROL = (LVM_FIRST + 24)
  919. LVCF_FMT = 1
  920. LVCF_WIDTH = 2
  921. LVCF_TEXT = 4
  922. LVCF_SUBITEM = 8
  923. LVCF_IMAGE = 16
  924. LVCF_ORDER = 32
  925. LVCFMT_LEFT = 0
  926. LVCFMT_RIGHT = 1
  927. LVCFMT_CENTER = 2
  928. LVCFMT_JUSTIFYMASK = 3
  929. LVCFMT_IMAGE = 2048
  930. LVCFMT_BITMAP_ON_RIGHT = 4096
  931. LVCFMT_COL_HAS_IMAGES = 32768
  932. LVM_GETCOLUMNA = (LVM_FIRST + 25)
  933. LVM_GETCOLUMNW = (LVM_FIRST + 95)
  934. LVM_GETCOLUMN = LVM_GETCOLUMNA
  935. LVM_SETCOLUMNA = (LVM_FIRST + 26)
  936. LVM_SETCOLUMNW = (LVM_FIRST + 96)
  937. LVM_SETCOLUMN = LVM_SETCOLUMNA
  938. LVM_INSERTCOLUMNA = (LVM_FIRST + 27)
  939. LVM_INSERTCOLUMNW = (LVM_FIRST + 97)
  940. LVM_INSERTCOLUMN = LVM_INSERTCOLUMNA
  941. LVM_DELETECOLUMN = (LVM_FIRST + 28)
  942. LVM_GETCOLUMNWIDTH = (LVM_FIRST + 29)
  943. LVSCW_AUTOSIZE = -1
  944. LVSCW_AUTOSIZE_USEHEADER = -2
  945. LVM_SETCOLUMNWIDTH = (LVM_FIRST + 30)
  946. LVM_GETHEADER = (LVM_FIRST + 31)
  947. LVM_CREATEDRAGIMAGE = (LVM_FIRST + 33)
  948. LVM_GETVIEWRECT = (LVM_FIRST + 34)
  949. LVM_GETTEXTCOLOR = (LVM_FIRST + 35)
  950. LVM_SETTEXTCOLOR = (LVM_FIRST + 36)
  951. LVM_GETTEXTBKCOLOR = (LVM_FIRST + 37)
  952. LVM_SETTEXTBKCOLOR = (LVM_FIRST + 38)
  953. LVM_GETTOPINDEX = (LVM_FIRST + 39)
  954. LVM_GETCOUNTPERPAGE = (LVM_FIRST + 40)
  955. LVM_GETORIGIN = (LVM_FIRST + 41)
  956. LVM_UPDATE = (LVM_FIRST + 42)
  957. LVM_SETITEMSTATE = (LVM_FIRST + 43)
  958. LVM_GETITEMSTATE = (LVM_FIRST + 44)
  959. LVM_GETITEMTEXTA = (LVM_FIRST + 45)
  960. LVM_GETITEMTEXTW = (LVM_FIRST + 115)
  961. LVM_GETITEMTEXT = LVM_GETITEMTEXTW
  962. LVM_GETITEMTEXT = LVM_GETITEMTEXTA
  963. LVM_SETITEMTEXTA = (LVM_FIRST + 46)
  964. LVM_SETITEMTEXTW = (LVM_FIRST + 116)
  965. LVM_SETITEMTEXT = LVM_SETITEMTEXTW
  966. LVM_SETITEMTEXT = LVM_SETITEMTEXTA
  967. LVSICF_NOINVALIDATEALL = 1
  968. LVSICF_NOSCROLL = 2
  969. LVM_SETITEMCOUNT = (LVM_FIRST + 47)
  970. LVM_SORTITEMS = (LVM_FIRST + 48)
  971. LVM_SETITEMPOSITION32 = (LVM_FIRST + 49)
  972. LVM_GETSELECTEDCOUNT = (LVM_FIRST + 50)
  973. LVM_GETITEMSPACING = (LVM_FIRST + 51)
  974. LVM_GETISEARCHSTRINGA = (LVM_FIRST + 52)
  975. LVM_GETISEARCHSTRINGW = (LVM_FIRST + 117)
  976. LVM_GETISEARCHSTRING = LVM_GETISEARCHSTRINGA
  977. LVM_SETICONSPACING = (LVM_FIRST + 53)
  978. LVM_SETEXTENDEDLISTVIEWSTYLE = (LVM_FIRST + 54) # optional wParam == mask
  979. LVM_GETEXTENDEDLISTVIEWSTYLE = (LVM_FIRST + 55)
  980. LVS_EX_GRIDLINES = 1
  981. LVS_EX_SUBITEMIMAGES = 2
  982. LVS_EX_CHECKBOXES = 4
  983. LVS_EX_TRACKSELECT = 8
  984. LVS_EX_HEADERDRAGDROP = 16
  985. LVS_EX_FULLROWSELECT = 32 # applies to report mode only
  986. LVS_EX_ONECLICKACTIVATE = 64
  987. LVS_EX_TWOCLICKACTIVATE = 128
  988. LVS_EX_FLATSB = 256
  989. LVS_EX_REGIONAL = 512
  990. LVS_EX_INFOTIP = 1024 # listview does InfoTips for you
  991. LVS_EX_UNDERLINEHOT = 2048
  992. LVS_EX_UNDERLINECOLD = 4096
  993. LVS_EX_MULTIWORKAREAS = 8192
  994. LVM_GETSUBITEMRECT = (LVM_FIRST + 56)
  995. LVM_SUBITEMHITTEST = (LVM_FIRST + 57)
  996. LVM_SETCOLUMNORDERARRAY = (LVM_FIRST + 58)
  997. LVM_GETCOLUMNORDERARRAY = (LVM_FIRST + 59)
  998. LVM_SETHOTITEM = (LVM_FIRST + 60)
  999. LVM_GETHOTITEM = (LVM_FIRST + 61)
  1000. LVM_SETHOTCURSOR = (LVM_FIRST + 62)
  1001. LVM_GETHOTCURSOR = (LVM_FIRST + 63)
  1002. LVM_APPROXIMATEVIEWRECT = (LVM_FIRST + 64)
  1003. LV_MAX_WORKAREAS = 16
  1004. LVM_SETWORKAREAS = (LVM_FIRST + 65)
  1005. LVM_GETWORKAREAS = (LVM_FIRST + 70)
  1006. LVM_GETNUMBEROFWORKAREAS = (LVM_FIRST + 73)
  1007. LVM_GETSELECTIONMARK = (LVM_FIRST + 66)
  1008. LVM_SETSELECTIONMARK = (LVM_FIRST + 67)
  1009. LVM_SETHOVERTIME = (LVM_FIRST + 71)
  1010. LVM_GETHOVERTIME = (LVM_FIRST + 72)
  1011. LVM_SETTOOLTIPS = (LVM_FIRST + 74)
  1012. LVM_GETTOOLTIPS = (LVM_FIRST + 78)
  1013. LVBKIF_SOURCE_NONE = 0
  1014. LVBKIF_SOURCE_HBITMAP = 1
  1015. LVBKIF_SOURCE_URL = 2
  1016. LVBKIF_SOURCE_MASK = 3
  1017. LVBKIF_STYLE_NORMAL = 0
  1018. LVBKIF_STYLE_TILE = 16
  1019. LVBKIF_STYLE_MASK = 16
  1020. LVM_SETBKIMAGEA = (LVM_FIRST + 68)
  1021. LVM_SETBKIMAGEW = (LVM_FIRST + 138)
  1022. LVM_GETBKIMAGEA = (LVM_FIRST + 69)
  1023. LVM_GETBKIMAGEW = (LVM_FIRST + 139)
  1024. LVKF_ALT = 1
  1025. LVKF_CONTROL = 2
  1026. LVKF_SHIFT = 4
  1027. LVN_ITEMCHANGING = (LVN_FIRST-0)
  1028. LVN_ITEMCHANGED = (LVN_FIRST-1)
  1029. LVN_INSERTITEM = (LVN_FIRST-2)
  1030. LVN_DELETEITEM = (LVN_FIRST-3)
  1031. LVN_DELETEALLITEMS = (LVN_FIRST-4)
  1032. LVN_BEGINLABELEDITA = (LVN_FIRST-5)
  1033. LVN_BEGINLABELEDITW = (LVN_FIRST-75)
  1034. LVN_ENDLABELEDITA = (LVN_FIRST-6)
  1035. LVN_ENDLABELEDITW = (LVN_FIRST-76)
  1036. LVN_COLUMNCLICK = (LVN_FIRST-8)
  1037. LVN_BEGINDRAG = (LVN_FIRST-9)
  1038. LVN_BEGINRDRAG = (LVN_FIRST-11)
  1039. LVN_ODCACHEHINT = (LVN_FIRST-13)
  1040. LVN_ODFINDITEMA = (LVN_FIRST-52)
  1041. LVN_ODFINDITEMW = (LVN_FIRST-79)
  1042. LVN_ITEMACTIVATE = (LVN_FIRST-14)
  1043. LVN_ODSTATECHANGED = (LVN_FIRST-15)
  1044. LVN_ODFINDITEM = LVN_ODFINDITEMA
  1045. LVN_HOTTRACK = (LVN_FIRST-21)
  1046. LVN_GETDISPINFOA = (LVN_FIRST-50)
  1047. LVN_GETDISPINFOW = (LVN_FIRST-77)
  1048. LVN_SETDISPINFOA = (LVN_FIRST-51)
  1049. LVN_SETDISPINFOW = (LVN_FIRST-78)
  1050. LVN_BEGINLABELEDIT = LVN_BEGINLABELEDITA
  1051. LVN_ENDLABELEDIT = LVN_ENDLABELEDITA
  1052. LVN_GETDISPINFO = LVN_GETDISPINFOA
  1053. LVN_SETDISPINFO = LVN_SETDISPINFOA
  1054. LVIF_DI_SETITEM = 4096
  1055. LVN_KEYDOWN = (LVN_FIRST-55)
  1056. LVN_MARQUEEBEGIN = (LVN_FIRST-56)
  1057. LVGIT_UNFOLDED = 1
  1058. LVN_GETINFOTIPA = (LVN_FIRST-57)
  1059. LVN_GETINFOTIPW = (LVN_FIRST-58)
  1060. LVN_GETINFOTIP = LVN_GETINFOTIPA
  1061. WC_TREEVIEWA = "SysTreeView32"
  1062. WC_TREEVIEW = WC_TREEVIEWA
  1063. TVS_HASBUTTONS = 1
  1064. TVS_HASLINES = 2
  1065. TVS_LINESATROOT = 4
  1066. TVS_EDITLABELS = 8
  1067. TVS_DISABLEDRAGDROP = 16
  1068. TVS_SHOWSELALWAYS = 32
  1069. TVS_RTLREADING = 64
  1070. TVS_NOTOOLTIPS = 128
  1071. TVS_CHECKBOXES = 256
  1072. TVS_TRACKSELECT = 512
  1073. TVS_SINGLEEXPAND = 1024
  1074. TVS_INFOTIP = 2048
  1075. TVS_FULLROWSELECT = 4096
  1076. TVS_NOSCROLL = 8192
  1077. TVS_NONEVENHEIGHT = 16384
  1078. TVIF_TEXT = 1
  1079. TVIF_IMAGE = 2
  1080. TVIF_PARAM = 4
  1081. TVIF_STATE = 8
  1082. TVIF_HANDLE = 16
  1083. TVIF_SELECTEDIMAGE = 32
  1084. TVIF_CHILDREN = 64
  1085. TVIF_INTEGRAL = 128
  1086. TVIS_SELECTED = 2
  1087. TVIS_CUT = 4
  1088. TVIS_DROPHILITED = 8
  1089. TVIS_BOLD = 16
  1090. TVIS_EXPANDED = 32
  1091. TVIS_EXPANDEDONCE = 64
  1092. TVIS_EXPANDPARTIAL = 128
  1093. TVIS_OVERLAYMASK = 3840
  1094. TVIS_STATEIMAGEMASK = 61440
  1095. TVIS_USERMASK = 61440
  1096. I_CHILDRENCALLBACK = (-1)
  1097. TVI_ROOT = -65536
  1098. TVI_FIRST = -65535
  1099. TVI_LAST = -65534
  1100. TVI_SORT = -65533
  1101. TVM_INSERTITEMA = (TV_FIRST + 0)
  1102. TVM_INSERTITEMW = (TV_FIRST + 50)
  1103. TVM_INSERTITEM = TVM_INSERTITEMW
  1104. TVM_INSERTITEM = TVM_INSERTITEMA
  1105. TVM_DELETEITEM = (TV_FIRST + 1)
  1106. TVM_EXPAND = (TV_FIRST + 2)
  1107. TVE_COLLAPSE = 1
  1108. TVE_EXPAND = 2
  1109. TVE_TOGGLE = 3
  1110. TVE_EXPANDPARTIAL = 16384
  1111. TVE_COLLAPSERESET = 32768
  1112. TVM_GETITEMRECT = (TV_FIRST + 4)
  1113. TVM_GETCOUNT = (TV_FIRST + 5)
  1114. TVM_GETINDENT = (TV_FIRST + 6)
  1115. TVM_SETINDENT = (TV_FIRST + 7)
  1116. TVM_GETIMAGELIST = (TV_FIRST + 8)
  1117. TVSIL_NORMAL = 0
  1118. TVSIL_STATE = 2
  1119. TVM_SETIMAGELIST = (TV_FIRST + 9)
  1120. TVM_GETNEXTITEM = (TV_FIRST + 10)
  1121. TVGN_ROOT = 0
  1122. TVGN_NEXT = 1
  1123. TVGN_PREVIOUS = 2
  1124. TVGN_PARENT = 3
  1125. TVGN_CHILD = 4
  1126. TVGN_FIRSTVISIBLE = 5
  1127. TVGN_NEXTVISIBLE = 6
  1128. TVGN_PREVIOUSVISIBLE = 7
  1129. TVGN_DROPHILITE = 8
  1130. TVGN_CARET = 9
  1131. TVGN_LASTVISIBLE = 10
  1132. TVM_SELECTITEM = (TV_FIRST + 11)
  1133. TVM_GETITEMA = (TV_FIRST + 12)
  1134. TVM_GETITEMW = (TV_FIRST + 62)
  1135. TVM_GETITEM = TVM_GETITEMW
  1136. TVM_GETITEM = TVM_GETITEMA
  1137. TVM_SETITEMA = (TV_FIRST + 13)
  1138. TVM_SETITEMW = (TV_FIRST + 63)
  1139. TVM_SETITEM = TVM_SETITEMW
  1140. TVM_SETITEM = TVM_SETITEMA
  1141. TVM_EDITLABELA = (TV_FIRST + 14)
  1142. TVM_EDITLABELW = (TV_FIRST + 65)
  1143. TVM_EDITLABEL = TVM_EDITLABELW
  1144. TVM_EDITLABEL = TVM_EDITLABELA
  1145. TVM_GETEDITCONTROL = (TV_FIRST + 15)
  1146. TVM_GETVISIBLECOUNT = (TV_FIRST + 16)
  1147. TVM_HITTEST = (TV_FIRST + 17)
  1148. TVHT_NOWHERE = 1
  1149. TVHT_ONITEMICON = 2
  1150. TVHT_ONITEMLABEL = 4
  1151. TVHT_ONITEMINDENT = 8
  1152. TVHT_ONITEMBUTTON = 16
  1153. TVHT_ONITEMRIGHT = 32
  1154. TVHT_ONITEMSTATEICON = 64
  1155. TVHT_ABOVE = 256
  1156. TVHT_BELOW = 512
  1157. TVHT_TORIGHT = 1024
  1158. TVHT_TOLEFT = 2048
  1159. TVHT_ONITEM = (TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON)
  1160. TVM_CREATEDRAGIMAGE = (TV_FIRST + 18)
  1161. TVM_SORTCHILDREN = (TV_FIRST + 19)
  1162. TVM_ENSUREVISIBLE = (TV_FIRST + 20)
  1163. TVM_SORTCHILDRENCB = (TV_FIRST + 21)
  1164. TVM_ENDEDITLABELNOW = (TV_FIRST + 22)
  1165. TVM_GETISEARCHSTRINGA = (TV_FIRST + 23)
  1166. TVM_GETISEARCHSTRINGW = (TV_FIRST + 64)
  1167. TVM_GETISEARCHSTRING = TVM_GETISEARCHSTRINGA
  1168. TVM_SETTOOLTIPS = (TV_FIRST + 24)
  1169. TVM_GETTOOLTIPS = (TV_FIRST + 25)
  1170. TVM_SETINSERTMARK = (TV_FIRST + 26)
  1171. TVM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1172. TVM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1173. TVM_SETITEMHEIGHT = (TV_FIRST + 27)
  1174. TVM_GETITEMHEIGHT = (TV_FIRST + 28)
  1175. TVM_SETBKCOLOR = (TV_FIRST + 29)
  1176. TVM_SETTEXTCOLOR = (TV_FIRST + 30)
  1177. TVM_GETBKCOLOR = (TV_FIRST + 31)
  1178. TVM_GETTEXTCOLOR = (TV_FIRST + 32)
  1179. TVM_SETSCROLLTIME = (TV_FIRST + 33)
  1180. TVM_GETSCROLLTIME = (TV_FIRST + 34)
  1181. TVM_SETINSERTMARKCOLOR = (TV_FIRST + 37)
  1182. TVM_GETINSERTMARKCOLOR = (TV_FIRST + 38)
  1183. TVN_SELCHANGINGA = (TVN_FIRST-1)
  1184. TVN_SELCHANGINGW = (TVN_FIRST-50)
  1185. TVN_SELCHANGEDA = (TVN_FIRST-2)
  1186. TVN_SELCHANGEDW = (TVN_FIRST-51)
  1187. TVC_UNKNOWN = 0
  1188. TVC_BYMOUSE = 1
  1189. TVC_BYKEYBOARD = 2
  1190. TVN_GETDISPINFOA = (TVN_FIRST-3)
  1191. TVN_GETDISPINFOW = (TVN_FIRST-52)
  1192. TVN_SETDISPINFOA = (TVN_FIRST-4)
  1193. TVN_SETDISPINFOW = (TVN_FIRST-53)
  1194. TVIF_DI_SETITEM = 4096
  1195. TVN_ITEMEXPANDINGA = (TVN_FIRST-5)
  1196. TVN_ITEMEXPANDINGW = (TVN_FIRST-54)
  1197. TVN_ITEMEXPANDEDA = (TVN_FIRST-6)
  1198. TVN_ITEMEXPANDEDW = (TVN_FIRST-55)
  1199. TVN_BEGINDRAGA = (TVN_FIRST-7)
  1200. TVN_BEGINDRAGW = (TVN_FIRST-56)
  1201. TVN_BEGINRDRAGA = (TVN_FIRST-8)
  1202. TVN_BEGINRDRAGW = (TVN_FIRST-57)
  1203. TVN_DELETEITEMA = (TVN_FIRST-9)
  1204. TVN_DELETEITEMW = (TVN_FIRST-58)
  1205. TVN_BEGINLABELEDITA = (TVN_FIRST-10)
  1206. TVN_BEGINLABELEDITW = (TVN_FIRST-59)
  1207. TVN_ENDLABELEDITA = (TVN_FIRST-11)
  1208. TVN_ENDLABELEDITW = (TVN_FIRST-60)
  1209. TVN_KEYDOWN = (TVN_FIRST-12)
  1210. TVN_GETINFOTIPA = (TVN_FIRST-13)
  1211. TVN_GETINFOTIPW = (TVN_FIRST-14)
  1212. TVN_SINGLEEXPAND = (TVN_FIRST-15)
  1213. TVN_SELCHANGING = TVN_SELCHANGINGA
  1214. TVN_SELCHANGED = TVN_SELCHANGEDA
  1215. TVN_GETDISPINFO = TVN_GETDISPINFOA
  1216. TVN_SETDISPINFO = TVN_SETDISPINFOA
  1217. TVN_ITEMEXPANDING = TVN_ITEMEXPANDINGA
  1218. TVN_ITEMEXPANDED = TVN_ITEMEXPANDEDA
  1219. TVN_BEGINDRAG = TVN_BEGINDRAGA
  1220. TVN_BEGINRDRAG = TVN_BEGINRDRAGA
  1221. TVN_DELETEITEM = TVN_DELETEITEMA
  1222. TVN_BEGINLABELEDIT = TVN_BEGINLABELEDITA
  1223. TVN_ENDLABELEDIT = TVN_ENDLABELEDITA
  1224. TVN_GETINFOTIP = TVN_GETINFOTIPA
  1225. TVCDRF_NOIMAGES = 65536
  1226. WC_COMBOBOXEXA = "ComboBoxEx32"
  1227. WC_COMBOBOXEX = WC_COMBOBOXEXA
  1228. CBEIF_TEXT = 1
  1229. CBEIF_IMAGE = 2
  1230. CBEIF_SELECTEDIMAGE = 4
  1231. CBEIF_OVERLAY = 8
  1232. CBEIF_INDENT = 16
  1233. CBEIF_LPARAM = 32
  1234. CBEIF_DI_SETITEM = 268435456
  1235. CBEM_INSERTITEMA = (WM_USER + 1)
  1236. CBEM_SETIMAGELIST = (WM_USER + 2)
  1237. CBEM_GETIMAGELIST = (WM_USER + 3)
  1238. CBEM_GETITEMA = (WM_USER + 4)
  1239. CBEM_SETITEMA = (WM_USER + 5)
  1240. #CBEM_DELETEITEM = CB_DELETESTRING
  1241. CBEM_GETCOMBOCONTROL = (WM_USER + 6)
  1242. CBEM_GETEDITCONTROL = (WM_USER + 7)
  1243. CBEM_SETEXSTYLE = (WM_USER + 8) # use SETEXTENDEDSTYLE instead
  1244. CBEM_SETEXTENDEDSTYLE = (WM_USER + 14) # lparam == new style, wParam (optional) == mask
  1245. CBEM_GETEXSTYLE = (WM_USER + 9) # use GETEXTENDEDSTYLE instead
  1246. CBEM_GETEXTENDEDSTYLE = (WM_USER + 9)
  1247. CBEM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1248. CBEM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1249. CBEM_SETEXSTYLE = (WM_USER + 8)
  1250. CBEM_GETEXSTYLE = (WM_USER + 9)
  1251. CBEM_HASEDITCHANGED = (WM_USER + 10)
  1252. CBEM_INSERTITEMW = (WM_USER + 11)
  1253. CBEM_SETITEMW = (WM_USER + 12)
  1254. CBEM_GETITEMW = (WM_USER + 13)
  1255. CBEM_INSERTITEM = CBEM_INSERTITEMA
  1256. CBEM_SETITEM = CBEM_SETITEMA
  1257. CBEM_GETITEM = CBEM_GETITEMA
  1258. CBES_EX_NOEDITIMAGE = 1
  1259. CBES_EX_NOEDITIMAGEINDENT = 2
  1260. CBES_EX_PATHWORDBREAKPROC = 4
  1261. CBES_EX_NOSIZELIMIT = 8
  1262. CBES_EX_CASESENSITIVE = 16
  1263. CBEN_GETDISPINFO = (CBEN_FIRST - 0)
  1264. CBEN_GETDISPINFOA = (CBEN_FIRST - 0)
  1265. CBEN_INSERTITEM = (CBEN_FIRST - 1)
  1266. CBEN_DELETEITEM = (CBEN_FIRST - 2)
  1267. CBEN_BEGINEDIT = (CBEN_FIRST - 4)
  1268. CBEN_ENDEDITA = (CBEN_FIRST - 5)
  1269. CBEN_ENDEDITW = (CBEN_FIRST - 6)
  1270. CBEN_GETDISPINFOW = (CBEN_FIRST - 7)
  1271. CBEN_DRAGBEGINA = (CBEN_FIRST - 8)
  1272. CBEN_DRAGBEGINW = (CBEN_FIRST - 9)
  1273. CBEN_DRAGBEGIN = CBEN_DRAGBEGINA
  1274. CBEN_ENDEDIT = CBEN_ENDEDITA
  1275. CBENF_KILLFOCUS = 1
  1276. CBENF_RETURN = 2
  1277. CBENF_ESCAPE = 3
  1278. CBENF_DROPDOWN = 4
  1279. CBEMAXSTRLEN = 260
  1280. WC_TABCONTROLA = "SysTabControl32"
  1281. WC_TABCONTROL = WC_TABCONTROLA
  1282. TCS_SCROLLOPPOSITE = 1 # assumes multiline tab
  1283. TCS_BOTTOM = 2
  1284. TCS_RIGHT = 2
  1285. TCS_MULTISELECT = 4 # allow multi-select in button mode
  1286. TCS_FLATBUTTONS = 8
  1287. TCS_FORCEICONLEFT = 16
  1288. TCS_FORCELABELLEFT = 32
  1289. TCS_HOTTRACK = 64
  1290. TCS_VERTICAL = 128
  1291. TCS_TABS = 0
  1292. TCS_BUTTONS = 256
  1293. TCS_SINGLELINE = 0
  1294. TCS_MULTILINE = 512
  1295. TCS_RIGHTJUSTIFY = 0
  1296. TCS_FIXEDWIDTH = 1024
  1297. TCS_RAGGEDRIGHT = 2048
  1298. TCS_FOCUSONBUTTONDOWN = 4096
  1299. TCS_OWNERDRAWFIXED = 8192
  1300. TCS_TOOLTIPS = 16384
  1301. TCS_FOCUSNEVER = 32768
  1302. TCS_EX_FLATSEPARATORS = 1
  1303. TCS_EX_REGISTERDROP = 2
  1304. TCM_GETIMAGELIST = (TCM_FIRST + 2)
  1305. TCM_SETIMAGELIST = (TCM_FIRST + 3)
  1306. TCM_GETITEMCOUNT = (TCM_FIRST + 4)
  1307. TCIF_TEXT = 1
  1308. TCIF_IMAGE = 2
  1309. TCIF_RTLREADING = 4
  1310. TCIF_PARAM = 8
  1311. TCIF_STATE = 16
  1312. TCIS_BUTTONPRESSED = 1
  1313. TCIS_HIGHLIGHTED = 2
  1314. TCM_GETITEMA = (TCM_FIRST + 5)
  1315. TCM_GETITEMW = (TCM_FIRST + 60)
  1316. TCM_GETITEM = TCM_GETITEMA
  1317. TCM_SETITEMA = (TCM_FIRST + 6)
  1318. TCM_SETITEMW = (TCM_FIRST + 61)
  1319. TCM_SETITEM = TCM_SETITEMA
  1320. TCM_INSERTITEMA = (TCM_FIRST + 7)
  1321. TCM_INSERTITEMW = (TCM_FIRST + 62)
  1322. TCM_INSERTITEM = TCM_INSERTITEMA
  1323. TCM_DELETEITEM = (TCM_FIRST + 8)
  1324. TCM_DELETEALLITEMS = (TCM_FIRST + 9)
  1325. TCM_GETITEMRECT = (TCM_FIRST + 10)
  1326. TCM_GETCURSEL = (TCM_FIRST + 11)
  1327. TCM_SETCURSEL = (TCM_FIRST + 12)
  1328. TCHT_NOWHERE = 1
  1329. TCHT_ONITEMICON = 2
  1330. TCHT_ONITEMLABEL = 4
  1331. TCHT_ONITEM = (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
  1332. TCM_HITTEST = (TCM_FIRST + 13)
  1333. TCM_SETITEMEXTRA = (TCM_FIRST + 14)
  1334. TCM_ADJUSTRECT = (TCM_FIRST + 40)
  1335. TCM_SETITEMSIZE = (TCM_FIRST + 41)
  1336. TCM_REMOVEIMAGE = (TCM_FIRST + 42)
  1337. TCM_SETPADDING = (TCM_FIRST + 43)
  1338. TCM_GETROWCOUNT = (TCM_FIRST + 44)
  1339. TCM_GETTOOLTIPS = (TCM_FIRST + 45)
  1340. TCM_SETTOOLTIPS = (TCM_FIRST + 46)
  1341. TCM_GETCURFOCUS = (TCM_FIRST + 47)
  1342. TCM_SETCURFOCUS = (TCM_FIRST + 48)
  1343. TCM_SETMINTABWIDTH = (TCM_FIRST + 49)
  1344. TCM_DESELECTALL = (TCM_FIRST + 50)
  1345. TCM_HIGHLIGHTITEM = (TCM_FIRST + 51)
  1346. TCM_SETEXTENDEDSTYLE = (TCM_FIRST + 52) # optional wParam == mask
  1347. TCM_GETEXTENDEDSTYLE = (TCM_FIRST + 53)
  1348. TCM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1349. TCM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1350. TCN_KEYDOWN = (TCN_FIRST - 0)
  1351. ANIMATE_CLASSA = "SysAnimate32"
  1352. ANIMATE_CLASS = ANIMATE_CLASSA
  1353. ACS_CENTER = 1
  1354. ACS_TRANSPARENT = 2
  1355. ACS_AUTOPLAY = 4
  1356. ACS_TIMER = 8 # don't use threads... use timers
  1357. ACM_OPENA = (WM_USER+100)
  1358. ACM_OPENW = (WM_USER+103)
  1359. ACM_OPEN = ACM_OPENW
  1360. ACM_OPEN = ACM_OPENA
  1361. ACM_PLAY = (WM_USER+101)
  1362. ACM_STOP = (WM_USER+102)
  1363. ACN_START = 1
  1364. ACN_STOP = 2
  1365. MONTHCAL_CLASSA = "SysMonthCal32"
  1366. MONTHCAL_CLASS = MONTHCAL_CLASSA
  1367. MCM_FIRST = 4096
  1368. MCM_GETCURSEL = (MCM_FIRST + 1)
  1369. MCM_SETCURSEL = (MCM_FIRST + 2)
  1370. MCM_GETMAXSELCOUNT = (MCM_FIRST + 3)
  1371. MCM_SETMAXSELCOUNT = (MCM_FIRST + 4)
  1372. MCM_GETSELRANGE = (MCM_FIRST + 5)
  1373. MCM_SETSELRANGE = (MCM_FIRST + 6)
  1374. MCM_GETMONTHRANGE = (MCM_FIRST + 7)
  1375. MCM_SETDAYSTATE = (MCM_FIRST + 8)
  1376. MCM_GETMINREQRECT = (MCM_FIRST + 9)
  1377. MCM_SETCOLOR = (MCM_FIRST + 10)
  1378. MCM_GETCOLOR = (MCM_FIRST + 11)
  1379. MCSC_BACKGROUND = 0 # the background color (between months)
  1380. MCSC_TEXT = 1 # the dates
  1381. MCSC_TITLEBK = 2 # background of the title
  1382. MCSC_TITLETEXT = 3
  1383. MCSC_MONTHBK = 4 # background within the month cal
  1384. MCSC_TRAILINGTEXT = 5 # the text color of header & trailing days
  1385. MCM_SETTODAY = (MCM_FIRST + 12)
  1386. MCM_GETTODAY = (MCM_FIRST + 13)
  1387. MCM_HITTEST = (MCM_FIRST + 14)
  1388. MCHT_TITLE = 65536
  1389. MCHT_CALENDAR = 131072
  1390. MCHT_TODAYLINK = 196608
  1391. MCHT_NEXT = 16777216 # these indicate that hitting
  1392. MCHT_PREV = 33554432 # here will go to the next/prev month
  1393. MCHT_NOWHERE = 0
  1394. MCHT_TITLEBK = (MCHT_TITLE)
  1395. MCHT_TITLEMONTH = (MCHT_TITLE | 1)
  1396. MCHT_TITLEYEAR = (MCHT_TITLE | 2)
  1397. MCHT_TITLEBTNNEXT = (MCHT_TITLE | MCHT_NEXT | 3)
  1398. MCHT_TITLEBTNPREV = (MCHT_TITLE | MCHT_PREV | 3)
  1399. MCHT_CALENDARBK = (MCHT_CALENDAR)
  1400. MCHT_CALENDARDATE = (MCHT_CALENDAR | 1)
  1401. MCHT_CALENDARDATENEXT = (MCHT_CALENDARDATE | MCHT_NEXT)
  1402. MCHT_CALENDARDATEPREV = (MCHT_CALENDARDATE | MCHT_PREV)
  1403. MCHT_CALENDARDAY = (MCHT_CALENDAR | 2)
  1404. MCHT_CALENDARWEEKNUM = (MCHT_CALENDAR | 3)
  1405. MCM_SETFIRSTDAYOFWEEK = (MCM_FIRST + 15)
  1406. MCM_GETFIRSTDAYOFWEEK = (MCM_FIRST + 16)
  1407. MCM_GETRANGE = (MCM_FIRST + 17)
  1408. MCM_SETRANGE = (MCM_FIRST + 18)
  1409. MCM_GETMONTHDELTA = (MCM_FIRST + 19)
  1410. MCM_SETMONTHDELTA = (MCM_FIRST + 20)
  1411. MCM_GETMAXTODAYWIDTH = (MCM_FIRST + 21)
  1412. MCM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
  1413. MCM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
  1414. MCN_SELCHANGE = (MCN_FIRST + 1)
  1415. MCN_GETDAYSTATE = (MCN_FIRST + 3)
  1416. MCN_SELECT = (MCN_FIRST + 4)
  1417. MCS_DAYSTATE = 1
  1418. MCS_MULTISELECT = 2
  1419. MCS_WEEKNUMBERS = 4
  1420. MCS_NOTODAYCIRCLE = 8
  1421. MCS_NOTODAY = 16
  1422. MCS_NOTODAY = 8
  1423. GMR_VISIBLE = 0 # visible portion of display
  1424. GMR_DAYSTATE = 1 # above plus the grayed out parts of
  1425. DATETIMEPICK_CLASSA = "SysDateTimePick32"
  1426. DATETIMEPICK_CLASS = DATETIMEPICK_CLASSA
  1427. DTM_FIRST = 4096
  1428. DTM_GETSYSTEMTIME = (DTM_FIRST + 1)
  1429. DTM_SETSYSTEMTIME = (DTM_FIRST + 2)
  1430. DTM_GETRANGE = (DTM_FIRST + 3)
  1431. DTM_SETRANGE = (DTM_FIRST + 4)
  1432. DTM_SETFORMATA = (DTM_FIRST + 5)
  1433. DTM_SETFORMATW = (DTM_FIRST + 50)
  1434. DTM_SETFORMAT = DTM_SETFORMATW
  1435. DTM_SETFORMAT = DTM_SETFORMATA
  1436. DTM_SETMCCOLOR = (DTM_FIRST + 6)
  1437. DTM_GETMCCOLOR = (DTM_FIRST + 7)
  1438. DTM_GETMONTHCAL = (DTM_FIRST + 8)
  1439. DTM_SETMCFONT = (DTM_FIRST + 9)
  1440. DTM_GETMCFONT = (DTM_FIRST + 10)
  1441. DTS_UPDOWN = 1 # use UPDOWN instead of MONTHCAL
  1442. DTS_SHOWNONE = 2 # allow a NONE selection
  1443. DTS_SHORTDATEFORMAT = 0 # use the short date format (app must forward WM_WININICHANGE messages)
  1444. DTS_LONGDATEFORMAT = 4 # use the long date format (app must forward WM_WININICHANGE messages)
  1445. DTS_TIMEFORMAT = 9 # use the time format (app must forward WM_WININICHANGE messages)
  1446. DTS_APPCANPARSE = 16 # allow user entered strings (app MUST respond to DTN_USERSTRING)
  1447. DTS_RIGHTALIGN = 32 # right-align popup instead of left-align it
  1448. DTN_DATETIMECHANGE = (DTN_FIRST + 1) # the systemtime has changed
  1449. DTN_USERSTRINGA = (DTN_FIRST + 2) # the user has entered a string
  1450. DTN_USERSTRINGW = (DTN_FIRST + 15)
  1451. DTN_USERSTRING = DTN_USERSTRINGW
  1452. DTN_WMKEYDOWNA = (DTN_FIRST + 3) # modify keydown on app format field (X)
  1453. DTN_WMKEYDOWNW = (DTN_FIRST + 16)
  1454. DTN_WMKEYDOWN = DTN_WMKEYDOWNA
  1455. DTN_FORMATA = (DTN_FIRST + 4) # query display for app format field (X)
  1456. DTN_FORMATW = (DTN_FIRST + 17)
  1457. DTN_FORMAT = DTN_FORMATA
  1458. DTN_FORMATQUERYA = (DTN_FIRST + 5) # query formatting info for app format field (X)
  1459. DTN_FORMATQUERYW = (DTN_FIRST + 18)
  1460. DTN_FORMATQUERY = DTN_FORMATQUERYA
  1461. DTN_DROPDOWN = (DTN_FIRST + 6) # MonthCal has dropped down
  1462. DTN_CLOSEUP = (DTN_FIRST + 7) # MonthCal is popping up
  1463. GDTR_MIN = 1
  1464. GDTR_MAX = 2
  1465. GDT_ERROR = -1
  1466. GDT_VALID = 0
  1467. GDT_NONE = 1
  1468. IPM_CLEARADDRESS = (WM_USER+100) # no parameters
  1469. IPM_SETADDRESS = (WM_USER+101) # lparam = TCP/IP address
  1470. IPM_GETADDRESS = (WM_USER+102) # 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