Ooops
November 27, 2020, 04:55:18 PM

Author Topic: [bb] Win32 constants by jfk EO-11110 [ 1+ years ago ]  (Read 835 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] Win32 constants by jfk EO-11110 [ 1+ years ago ]
« on: June 29, 2017, 12:28:41 AM »
Title : Win32 constants
Author : jfk EO-11110
Posted : 1+ years ago

Description : Well they have been here somewhere, but for some reason I cannot find them, I even guess some stuff was removed, then again maybe I'm only blind today. However, these constants need to be here, in the userlib section.

These constants are often used in Code examples of Win Api Calls, and usually Basic Coders are pretty confused when they don't know that for example "WM_ACTIVATE" is just a constant with a value of 6.

And as I already said usually you don't find them when you need them, google and yahoo will show you everything but the thing you are looking for, and msdn.com seems to be driven by a conspiracy, designed to make sure YOU stay dumb...

So here's a little help, the frequently used Win32 constants.


Code :
Code: BlitzBasic
  1. ;//
  2. ;// Win32 Constants
  3. ;//
  4.  
  5. ;#Region mouse_event
  6. Const MOUSEEVENTF_MOVE =$1
  7. Const MOUSEEVENTF_LEFTDOWN =$2
  8. Const MOUSEEVENTF_LEFTUP =$4
  9. Const MOUSEEVENTF_RIGHTDOWN =$8
  10. Const MOUSEEVENTF_RIGHTUP =$10
  11. Const MOUSEEVENTF_MIDDLEDOWN =$20
  12. Const MOUSEEVENTF_MIDDLEUP =$40
  13. Const MOUSEEVENTF_ABSOLUTE =$8000
  14. ;#End Region
  15.  
  16.  
  17.  
  18. ;#region Peek Message Flags
  19. Const PM_NOREMOVEConst = 0
  20. Const PM_REMOVEConst = 1
  21. Const PM_NOYIELDConst = 2
  22. ;#End Region
  23.  
  24. ;#Region Windows Messages
  25. Const WM_NULL                   = $0000
  26. Const WM_CREATE                 = $0001
  27. Const WM_DESTROY                = $0002
  28. Const WM_MOVE                   = $0003
  29. Const WM_SIZE                   = $0005
  30. Const WM_ACTIVATE               = $0006
  31. Const WM_SETFOCUS               = $0007
  32. Const WM_KILLFOCUS              = $0008
  33. Const WM_ENABLE                 = $000A
  34. Const WM_SETREDRAW              = $000B
  35. Const WM_SETTEXT                = $000C
  36. Const WM_GETTEXT                = $000D
  37. Const WM_GETTEXTLENGTH          = $000E
  38. Const WM_PAINT                  = $000F
  39. Const WM_CLOSE                  = $0010
  40. Const WM_QUERYENDSESSION        = $0011
  41. Const WM_QUIT                   = $0012
  42. Const WM_QUERYOPEN              = $0013
  43. Const WM_ERASEBKGND             = $0014
  44. Const WM_SYSCOLORCHANGE         = $0015
  45. Const WM_ENDSESSION             = $0016
  46. Const WM_SHOWWINDOW             = $0018
  47. Const WM_CTLCOLOR               = $0019
  48. Const WM_WININICHANGE           = $001A
  49. Const WM_SETTINGCHANGE          = $001A
  50. Const WM_DEVMODECHANGE          = $001B
  51. Const WM_ACTIVATEAPP            = $001C
  52. Const WM_FONTCHANGE             = $001D
  53. Const WM_TIMECHANGE             = $001E
  54. Const WM_CANCELMODE             = $001F
  55. Const WM_SETCURSOR              = $0020
  56. Const WM_MOUSEACTIVATE          = $0021
  57. Const WM_CHILDACTIVATE          = $0022
  58. Const WM_QUEUESYNC              = $0023
  59. Const WM_GETMINMAXINFO          = $0024
  60. Const WM_PAINTICON              = $0026
  61. Const WM_ICONERASEBKGND         = $0027
  62. Const WM_NEXTDLGCTL             = $0028
  63. Const WM_SPOOLERSTATUS          = $002A
  64. Const WM_DRAWITEM               = $002B
  65. Const WM_MEASUREITEM            = $002C
  66. Const WM_DELETEITEM             = $002D
  67. Const WM_VKEYTOITEM             = $002E
  68. Const WM_CHARTOITEM             = $002F
  69. Const WM_SETFONT                = $0030
  70. Const WM_GETFONT                = $0031
  71. Const WM_SETHOTKEY              = $0032
  72. Const WM_GETHOTKEY              = $0033
  73. Const WM_QUERYDRAGICON          = $0037
  74. Const WM_COMPAREITEM            = $0039
  75. Const WM_GETOBJECT              = $003D
  76. Const WM_COMPACTING             = $0041
  77. Const WM_COMMNOTIFY             = $0044
  78. Const WM_WINDOWPOSCHANGING      = $0046
  79. Const WM_WINDOWPOSCHANGED       = $0047
  80. Const WM_POWER                  = $0048
  81. Const WM_COPYDATA               = $004A
  82. Const WM_CANCELJOURNAL          = $004B
  83. Const WM_NOTIFY                 = $004E
  84. Const WM_INPUTLANGCHANGEREQUEST = $0050
  85. Const WM_INPUTLANGCHANGE        = $0051
  86. Const WM_TCARD                  = $0052
  87. Const WM_HELP                   = $0053
  88. Const WM_USERCHANGED            = $0054
  89. Const WM_NOTIFYFORMAT           = $0055
  90. Const WM_CONTEXTMENU            = $007B
  91. Const WM_STYLECHANGING          = $007C
  92. Const WM_STYLECHANGED           = $007D
  93. Const WM_DISPLAYCHANGE          = $007E
  94. Const WM_GETICON                = $007F
  95. Const WM_SETICON                = $0080
  96. Const WM_NCCREATE               = $0081
  97. Const WM_NCDESTROY              = $0082
  98. Const WM_NCCALCSIZE             = $0083
  99. Const WM_NCHITTEST              = $0084
  100. Const WM_NCPAINT                = $0085
  101. Const WM_NCACTIVATE             = $0086
  102. Const WM_GETDLGCODE             = $0087
  103. Const WM_SYNCPAINT              = $0088
  104. Const WM_NCMOUSEMOVE            = $00A0
  105. Const WM_NCLBUTTONDOWN          = $00A1
  106. Const WM_NCLBUTTONUP            = $00A2
  107. Const WM_NCLBUTTONDBLCLK        = $00A3
  108. Const WM_NCRBUTTONDOWN          = $00A4
  109. Const WM_NCRBUTTONUP            = $00A5
  110. Const WM_NCRBUTTONDBLCLK        = $00A6
  111. Const WM_NCMBUTTONDOWN          = $00A7
  112. Const WM_NCMBUTTONUP            = $00A8
  113. Const WM_NCMBUTTONDBLCLK        = $00A9
  114. Const WM_KEYDOWN                = $0100
  115. Const WM_KEYUP                  = $0101
  116. Const WM_CHAR                   = $0102
  117. Const WM_DEADCHAR               = $0103
  118. Const WM_SYSKEYDOWN             = $0104
  119. Const WM_SYSKEYUP               = $0105
  120. Const WM_SYSCHAR                = $0106
  121. Const WM_SYSDEADCHAR            = $0107
  122. Const WM_KEYLAST                = $0108
  123. Const WM_IME_STARTCOMPOSITION   = $010D
  124. Const WM_IME_ENDCOMPOSITION     = $010E
  125. Const WM_IME_COMPOSITION        = $010F
  126. Const WM_IME_KEYLAST            = $010F
  127. Const WM_INITDIALOG             = $0110
  128. Const WM_COMMAND                = $0111
  129. Const WM_SYSCOMMAND             = $0112
  130. Const WM_TIMER                  = $0113
  131. Const WM_HSCROLL                = $0114
  132. Const WM_VSCROLL                = $0115
  133. Const WM_INITMENU               = $0116
  134. Const WM_INITMENUPOPUP          = $0117
  135. Const WM_MENUSELECT             = $011F
  136. Const WM_MENUCHAR               = $0120
  137. Const WM_ENTERIDLE              = $0121
  138. Const WM_MENURBUTTONUP          = $0122
  139. Const WM_MENUDRAG               = $0123
  140. Const WM_MENUGETOBJECT          = $0124
  141. Const WM_UNINITMENUPOPUP        = $0125
  142. Const WM_MENUCOMMAND            = $0126
  143. Const WM_CTLCOLORMSGBOX         = $0132
  144. Const WM_CTLCOLOREDIT           = $0133
  145. Const WM_CTLCOLORLISTBOX        = $0134
  146. Const WM_CTLCOLORBTN            = $0135
  147. Const WM_CTLCOLORDLG            = $0136
  148. Const WM_CTLCOLORSCROLLBAR      = $0137
  149. Const WM_CTLCOLORSTATIC         = $0138
  150. Const WM_MOUSEMOVE              = $0200
  151. Const WM_LBUTTONDOWN            = $0201
  152. Const WM_LBUTTONUP              = $0202
  153. Const WM_LBUTTONDBLCLK          = $0203
  154. Const WM_RBUTTONDOWN            = $0204
  155. Const WM_RBUTTONUP              = $0205
  156. Const WM_RBUTTONDBLCLK          = $0206
  157. Const WM_MBUTTONDOWN            = $0207
  158. Const WM_MBUTTONUP              = $0208
  159. Const WM_MBUTTONDBLCLK          = $0209
  160. Const WM_MOUSEWHEEL             = $020A
  161. Const WM_PARENTNOTIFY           = $0210
  162. Const WM_ENTERMENULOOP          = $0211
  163. Const WM_EXITMENULOOP           = $0212
  164. Const WM_NEXTMENU               = $0213
  165. Const WM_SIZING                 = $0214
  166. Const WM_CAPTURECHANGED         = $0215
  167. Const WM_MOVING                 = $0216
  168. Const WM_DEVICECHANGE           = $0219
  169. Const WM_MDICREATE              = $0220
  170. Const WM_MDIDESTROY             = $0221
  171. Const WM_MDIACTIVATE            = $0222
  172. Const WM_MDIRESTORE             = $0223
  173. Const WM_MDINEXT                = $0224
  174. Const WM_MDIMAXIMIZE            = $0225
  175. Const WM_MDITILE                = $0226
  176. Const WM_MDICASCADE             = $0227
  177. Const WM_MDIICONARRANGE         = $0228
  178. Const WM_MDIGETACTIVE           = $0229
  179. Const WM_MDISETMENU             = $0230
  180. Const WM_ENTERSIZEMOVE          = $0231
  181. Const WM_EXITSIZEMOVE           = $0232
  182. Const WM_DROPFILES              = $0233
  183. Const WM_MDIREFRESHMENU         = $0234
  184. Const WM_IME_SETCONTEXT         = $0281
  185. Const WM_IME_NOTIFY             = $0282
  186. Const WM_IME_CONTROL            = $0283
  187. Const WM_IME_COMPOSITIONFULL    = $0284
  188. Const WM_IME_SELECT             = $0285
  189. Const WM_IME_CHAR               = $0286
  190. Const WM_IME_REQUEST            = $0288
  191. Const WM_IME_KEYDOWN            = $0290
  192. Const WM_IME_KEYUP              = $0291
  193. Const WM_MOUSEHOVER             = $02A1
  194. Const WM_MOUSELEAVE             = $02A3
  195. Const WM_CUT                    = $0300
  196. Const WM_COPY                   = $0301
  197. Const WM_PASTE                  = $0302
  198. Const WM_CLEAR                  = $0303
  199. Const WM_UNDO                   = $0304
  200. Const WM_RENDERFORMAT           = $0305
  201. Const WM_RENDERALLFORMATS       = $0306
  202. Const WM_DESTROYCLIPBOARD       = $0307
  203. Const WM_DRAWCLIPBOARD          = $0308
  204. Const WM_PAINTCLIPBOARD         = $0309
  205. Const WM_VSCROLLCLIPBOARD       = $030A
  206. Const WM_SIZECLIPBOARD          = $030B
  207. Const WM_ASKCBFORMATNAME        = $030C
  208. Const WM_CHANGECBCHAIN          = $030D
  209. Const WM_HSCROLLCLIPBOARD       = $030E
  210. Const WM_QUERYNEWPALETTE        = $030F
  211. Const WM_PALETTEISCHANGING      = $0310
  212. Const WM_PALETTECHANGED         = $0311
  213. Const WM_HOTKEY                 = $0312
  214. Const WM_PRINT                  = $0317
  215. Const WM_PRINTCLIENT            = $0318
  216. Const WM_HANDHELDFIRST          = $0358
  217. Const WM_HANDHELDLAST           = $035F
  218. Const WM_AFXFIRST               = $0360
  219. Const WM_AFXLAST                = $037F
  220. Const WM_PENWINFIRST            = $0380
  221. Const WM_PENWINLAST             = $038F
  222. Const WM_APP                    = $8000
  223. Const WM_USER                   = $0400
  224. Const WM_REFLECT                = WM_USER + $1c00
  225. ;#End Region
  226.  
  227. ;#Region Window Styles
  228. Const WS_OVERLAPPED       = $00000000
  229. Const WS_POPUP            = $80000000
  230. Const WS_CHILD            = $40000000
  231. Const WS_MINIMIZE         = $20000000
  232. Const WS_VISIBLE          = $10000000
  233. Const WS_DISABLED         = $08000000
  234. Const WS_CLIPSIBLINGS     = $04000000
  235. Const WS_CLIPCHILDREN     = $02000000
  236. Const WS_MAXIMIZE         = $01000000
  237. Const WS_CAPTION          = $00C00000
  238. Const WS_BORDER           = $00800000
  239. Const WS_DLGFRAME         = $00400000
  240. Const WS_VSCROLL          = $00200000
  241. Const WS_HSCROLL          = $00100000
  242. Const WS_SYSMENU          = $00080000
  243. Const WS_THICKFRAME       = $00040000
  244. Const WS_GROUP            = $00020000
  245. Const WS_TABSTOP          = $00010000
  246. Const WS_MINIMIZEBOX      = $00020000
  247. Const WS_MAXIMIZEBOX      = $00010000
  248. Const WS_TILED            = $00000000
  249. Const WS_ICONIC           = $20000000
  250. Const WS_SIZEBOX          = $00040000
  251. Const WS_POPUPWINDOW      = $80880000
  252. Const WS_OVERLAPPEDWINDOW = $00CF0000
  253. Const WS_TILEDWINDOW      = $00CF0000
  254. Const WS_CHILDWINDOW      = $40000000
  255. ;#End Region
  256.  
  257. ;#Region Window Extended Styles
  258. Const WS_EX_DLGMODALFRAME     = $00000001
  259. Const WS_EX_NOPARENTNOTIFY    = $00000004
  260. Const WS_EX_TOPMOST           = $00000008
  261. Const WS_EX_ACCEPTFILES       = $00000010
  262. Const WS_EX_TRANSPARENT       = $00000020
  263. Const WS_EX_MDICHILD          = $00000040
  264. Const WS_EX_TOOLWINDOW        = $00000080
  265. Const WS_EX_WINDOWEDGE        = $00000100
  266. Const WS_EX_CLIENTEDGE        = $00000200
  267. Const WS_EX_CONTEXTHELP       = $00000400
  268. Const WS_EX_RIGHT             = $00001000
  269. Const WS_EX_LEFT              = $00000000
  270. Const WS_EX_RTLREADING        = $00002000
  271. Const WS_EX_LTRREADING        = $00000000
  272. Const WS_EX_LEFTSCROLLBAR     = $00004000
  273. Const WS_EX_RIGHTSCROLLBAR    = $00000000
  274. Const WS_EX_CONTROLPARENT     = $00010000
  275. Const WS_EX_STATICEDGE        = $00020000
  276. Const WS_EX_APPWINDOW         = $00040000
  277. Const WS_EX_OVERLAPPEDWINDOW  = $00000300
  278. Const WS_EX_PALETTEWINDOW     = $00000188
  279. Const WS_EX_LAYERED           = $00080000
  280. ;#End Region
  281.  
  282. ;#Region ShowWindow Styles
  283. Const SW_HIDE             = 0
  284. Const SW_SHOWNORMAL       = 1
  285. Const SW_NORMAL           = 1
  286. Const SW_SHOWMINIMIZED    = 2
  287. Const SW_SHOWMAXIMIZED    = 3
  288. Const SW_MAXIMIZE         = 3
  289. Const SW_SHOWNOACTIVATE   = 4
  290. Const SW_SHOW             = 5
  291. Const SW_MINIMIZE         = 6
  292. Const SW_SHOWMINNOACTIVE  = 7
  293. Const SW_SHOWNA           = 8
  294. Const SW_RESTORE          = 9
  295. Const SW_SHOWDEFAULT      = 10
  296. Const SW_FORCEMINIMIZE    = 11
  297. Const SW_MAX              = 11
  298. ;#End Region
  299.  
  300. ;#Region SetWindowPos Z Order
  301. Const HWND_TOP        = 0
  302. Const HWND_BOTTOM     = 1
  303. Const HWND_TOPMOST    = -1
  304. Const HWND_NOTOPMOST  = -2
  305. ;#End Region
  306.  
  307. ;#Region SetWindowPosFlags
  308. Const SWP_NOSIZE          = $0001
  309. Const SWP_NOMOVE          = $0002
  310. Const SWP_NOZORDER        = $0004
  311. Const SWP_NOREDRAW        = $0008
  312. Const SWP_NOACTIVATE      = $0010
  313. Const SWP_FRAMECHANGED    = $0020
  314. Const SWP_SHOWWINDOW      = $0040
  315. Const SWP_HIDEWINDOW      = $0080
  316. Const SWP_NOCOPYBITS      = $0100
  317. Const SWP_NOOWNERZORDER   = $0200
  318. Const SWP_NOSENDCHANGING  = $0400
  319. Const SWP_DRAWFRAME       = $0020
  320. Const SWP_NOREPOSITION    = $0200
  321. Const SWP_DEFERERASE      = $2000
  322. Const SWP_ASYNCWINDOWPOS  = $4000
  323. ;#End Region
  324.  
  325. ;#Region Virtual Keys
  326. Const VK_LBUTTON     = $01
  327. Const VK_CANCEL      = $03
  328. Const VK_BACK        = $08
  329. Const VK_TAB         = $09
  330. Const VK_CLEAR       = $0C
  331. Const VK_RETURN      = $0D
  332. Const VK_SHIFT       = $10
  333. Const VK_CONTROL     = $11
  334. Const VK_MENU        = $12
  335. Const VK_CAPITAL     = $14
  336. Const VK_ESCAPE      = $1B
  337. Const VK_SPACE       = $20
  338. Const VK_PRIOR       = $21
  339. Const VK_NEXT        = $22
  340. Const VK_END         = $23
  341. Const VK_HOME        = $24
  342. Const VK_LEFT        = $25
  343. Const VK_UP          = $26
  344. Const VK_RIGHT       = $27
  345. Const VK_DOWN        = $28
  346. Const VK_SELECT      = $29
  347. Const VK_EXECUTE     = $2B
  348. Const VK_SNAPSHOT    = $2C
  349. Const VK_HELP        = $2F
  350. Const VK_0       = $30
  351. Const VK_1       = $31
  352. Const VK_2       = $32
  353. Const VK_3       = $33
  354. Const VK_4       = $34
  355. Const VK_5       = $35
  356. Const VK_6       = $36
  357. Const VK_7       = $37
  358. Const VK_8       = $38
  359. Const VK_9       = $39
  360. Const VK_A       = $41
  361. Const VK_B       = $42
  362. Const VK_C       = $43
  363. Const VK_D       = $44
  364. Const VK_E       = $45
  365. Const VK_F       = $46
  366. Const VK_G       = $47
  367. Const VK_H       = $48
  368. Const VK_I       = $49
  369. Const VK_J       = $4A
  370. Const VK_K       = $4B
  371. Const VK_L       = $4C
  372. Const VK_M       = $4D
  373. Const VK_N       = $4E
  374. Const VK_O       = $4F
  375. Const VK_P       = $50
  376. Const VK_Q       = $51
  377. Const VK_R       = $52
  378. Const VK_S       = $53
  379. Const VK_T       = $54
  380. Const VK_U       = $55
  381. Const VK_V       = $56
  382. Const VK_W       = $57
  383. Const VK_X       = $58
  384. Const VK_Y       = $59
  385. Const VK_Z       = $5A
  386. Const VK_NUMPAD0       = $60
  387. Const VK_NUMPAD1       = $61
  388. Const VK_NUMPAD2       = $62
  389. Const VK_NUMPAD3       = $63
  390. Const VK_NUMPAD4       = $64
  391. Const VK_NUMPAD5       = $65
  392. Const VK_NUMPAD6       = $66
  393. Const VK_NUMPAD7       = $67
  394. Const VK_NUMPAD8       = $68
  395. Const VK_NUMPAD9       = $69
  396. Const VK_MULTIPLY      = $6A
  397. Const VK_ADD           = $6B
  398. Const VK_SEPARATOR     = $6C
  399. Const VK_SUBTRACT      = $6D
  400. Const VK_DECIMAL       = $6E
  401. Const VK_DIVIDE        = $6F
  402. Const VK_ATTN          = $F6
  403. Const VK_CRSEL         = $F7
  404. Const VK_EXSEL         = $F8
  405. Const VK_EREOF         = $F9
  406. Const VK_PLAY          = $FA
  407. Const VK_ZOOM          = $FB
  408. Const VK_NONAME        = $FC
  409. Const VK_PA1           = $FD
  410. Const VK_OEM_CLEAR     = $FE
  411. Const VK_LWIN          = $5B
  412. Const VK_RWIN          = $5C
  413. Const VK_APPS          = $5D  
  414. Const VK_LSHIFT        = $A0  
  415. Const VK_RSHIFT        = $A1  
  416. Const VK_LCONTROL      = $A2  
  417. Const VK_RCONTROL      = $A3  
  418. Const VK_LMENU         = $A4  
  419. Const VK_RMENU         = $A5
  420. ;#End Region
  421.  
  422. ;#Region PatBlt Types
  423. Const SRCCOPY          =   $00CC0020
  424. Const SRCPAINT         =   $00EE0086
  425. Const SRCAND           =   $008800C6
  426. Const SRCINVERT        =   $00660046
  427. Const SRCERASE         =   $00440328
  428. Const NOTSRCCOPY       =   $00330008
  429. Const NOTSRCERASE      =   $001100A6
  430. Const MERGECOPY        =   $00C000CA
  431. Const MERGEPAINT       =   $00BB0226
  432. Const PATCOPY          =   $00F00021
  433. Const PATPAINT         =   $00FB0A09
  434. Const PATINVERT        =   $005A0049
  435. Const DSTINVERT        =   $00550009
  436. Const BLACKNESS        =   $00000042
  437. Const WHITENESS        =   $00FF0062
  438. ;const NOMIRRORBITMAP  =   ?
  439. Const CAPTUREBLT       =   $40000000
  440. ;#End Region
  441.  
  442. ;#Region Clipboard Formats
  443. Const CF_TEXT             = 1
  444. Const CF_BITMAP           = 2
  445. Const CF_METAFILEPICT     = 3
  446. Const CF_SYLK             = 4
  447. Const CF_DIF              = 5
  448. Const CF_TIFF             = 6
  449. Const CF_OEMTEXT          = 7
  450. Const CF_DIB              = 8
  451. Const CF_PALETTE          = 9
  452. Const CF_PENDATA          = 10
  453. Const CF_RIFF             = 11
  454. Const CF_WAVE             = 12
  455. Const CF_UNICODETEXT      = 13
  456. Const CF_ENHMETAFILE      = 14
  457. Const CF_HDROP            = 15
  458. Const CF_LOCALE           = 16
  459. Const CF_MAX              = 17
  460. Const CF_OWNERDISPLAY     = $0080
  461. Const CF_DSPTEXT          = $0081
  462. Const CF_DSPBITMAP        = $0082
  463. Const CF_DSPMETAFILEPICT  = $0083
  464. Const CF_DSPENHMETAFILE   = $008E
  465. Const CF_PRIVATEFIRST     = $0200
  466. Const CF_PRIVATELAST      = $02FF
  467. Const CF_GDIOBJFIRST      = $0300
  468. Const CF_GDIOBJLAST       = $03FF
  469. ;#End Region
  470.  
  471. ;#Region Common Controls Initialization flags
  472. Const ICC_LISTVIEW_CLASSES   = $00000001
  473. Const ICC_TREEVIEW_CLASSES   = $00000002
  474. Const ICC_BAR_CLASSES        = $00000004
  475. Const ICC_TAB_CLASSES        = $00000008
  476. Const ICC_UPDOWN_CLASS       = $00000010
  477. Const ICC_PROGRESS_CLASS     = $00000020
  478. Const ICC_HOTKEY_CLASS       = $00000040
  479. Const ICC_ANIMATE_CLASS      = $00000080
  480. Const ICC_WIN95_CLASSES      = $000000FF
  481. Const ICC_DATE_CLASSES       = $00000100
  482. Const ICC_USEREX_CLASSES     = $00000200
  483. Const ICC_COOL_CLASSES       = $00000400
  484. Const ICC_INTERNET_CLASSES   = $00000800
  485. Const ICC_PAGESCROLLER_CLASS = $00001000
  486. Const ICC_NATIVEFNTCTL_CLASS = $00002000
  487. ;#End Region
  488.  
  489. ;#Region Common Controls Styles
  490. Const CCS_TOP                 = $00000001
  491. Const CCS_NOMOVEY             = $00000002
  492. Const CCS_BOTTOM              = $00000003
  493. Const CCS_NORESIZE            = $00000004
  494. Const CCS_NOPARENTALIGN       = $00000008
  495. Const CCS_ADJUSTABLE          = $00000020
  496. Const CCS_NODIVIDER           = $00000040
  497. Const CCS_VERT                = $00000080
  498. Const CCS_LEFT                = (CCS_VERT Or CCS_TOP)
  499. Const CCS_RIGHT               = (CCS_VERT Or CCS_BOTTOM)
  500. Const CCS_NOMOVEX             = (CCS_VERT Or CCS_NOMOVEY)
  501. ;#End Region
  502.  
  503. ;#Region Toolbar button styles
  504. Const TBSTYLE_BUTTON          = $0000
  505. Const TBSTYLE_SEP             = $0001
  506. Const TBSTYLE_CHECK           = $0002
  507. Const TBSTYLE_GROUP           = $0004
  508. Const TBSTYLE_CHECKGROUP      = (TBSTYLE_GROUP Or TBSTYLE_CHECK)
  509. Const TBSTYLE_DROPDOWN        = $0008
  510. Const TBSTYLE_AUTOSIZE        = $0010
  511. Const TBSTYLE_NOPREFIX        = $0020
  512. Const TBSTYLE_TOOLTIPS        = $0100
  513. Const TBSTYLE_WRAPABLE        = $0200
  514. Const TBSTYLE_ALTDRAG         = $0400
  515. Const TBSTYLE_FLAT            = $0800
  516. Const TBSTYLE_LIST            = $1000
  517. Const TBSTYLE_CUSTOMERASE     = $2000
  518. Const TBSTYLE_REGISTERDROP    = $4000
  519. Const TBSTYLE_TRANSPARENT     = $8000
  520. Const TBSTYLE_DRAWDDARROWS = $00000001
  521. ;#End Region
  522.  
  523. ;#Region ToolBar Ex Styles
  524. Const TBSTYLE_EX_DRAWDDARROWS        = $1
  525. Const TBSTYLE_EX_HIDECLIPPEDBUTTONS  = $10
  526. Const TBSTYLE_EX_DOUBLEBUFFER        = $80
  527. ;#End Region
  528.  
  529. ;#Region ToolBar Messages
  530. Const TB_ENABLEBUTTON         = (WM_USER + 1)
  531. Const TB_CHECKBUTTON          = (WM_USER + 2)
  532. Const TB_PRESSBUTTON          = (WM_USER + 3)
  533. Const TB_HIDEBUTTON           = (WM_USER + 4)
  534. Const TB_INDETERMINATE        = (WM_USER + 5)
  535. Const TB_MARKBUTTON           = (WM_USER + 6)
  536. Const TB_ISBUTTONENABLED      = (WM_USER + 9)
  537. Const TB_ISBUTTONCHECKED      = (WM_USER + 10)
  538. Const TB_ISBUTTONPRESSED      = (WM_USER + 11)
  539. Const TB_ISBUTTONHIDDEN       = (WM_USER + 12)
  540. Const TB_ISBUTTONINDETERMINATE= (WM_USER + 13)
  541. Const TB_ISBUTTONHIGHLIGHTED  = (WM_USER + 14)
  542. Const TB_SETSTATE             = (WM_USER + 17)
  543. Const TB_GETSTATE             = (WM_USER + 18)
  544. Const TB_ADDBITMAP            = (WM_USER + 19)
  545. Const TB_ADDBUTTONSA          = (WM_USER + 20)
  546. Const TB_INSERTBUTTONA        = (WM_USER + 21)
  547. Const TB_ADDBUTTONS           = (WM_USER + 20)
  548. Const TB_INSERTBUTTON         = (WM_USER + 21)
  549. Const TB_DELETEBUTTON         = (WM_USER + 22)
  550. Const TB_GETBUTTON            = (WM_USER + 23)
  551. Const TB_BUTTONCOUNT          = (WM_USER + 24)
  552. Const TB_COMMANDTOINDEX       = (WM_USER + 25)
  553. Const TB_SAVERESTOREA         = (WM_USER + 26)
  554. Const TB_CUSTOMIZE            = (WM_USER + 27)
  555. Const TB_ADDSTRINGA           = (WM_USER + 28)
  556. Const TB_GETITEMRECT          = (WM_USER + 29)
  557. Const TB_BUTTONSTRUCTSIZE     = (WM_USER + 30)
  558. Const TB_SETBUTTONSIZE        = (WM_USER + 31)
  559. Const TB_SETBITMAPSIZE        = (WM_USER + 32)
  560. Const TB_AUTOSIZE             = (WM_USER + 33)
  561. Const TB_GETTOOLTIPS          = (WM_USER + 35)
  562. Const TB_SETTOOLTIPS          = (WM_USER + 36)
  563. Const TB_SETPARENT            = (WM_USER + 37)
  564. Const TB_SETROWS              = (WM_USER + 39)
  565. Const TB_GETROWS              = (WM_USER + 40)
  566. Const TB_GETBITMAPFLAGS       = (WM_USER + 41)
  567. Const TB_SETCMDID             = (WM_USER + 42)
  568. Const TB_CHANGEBITMAP         = (WM_USER + 43)
  569. Const TB_GETBITMAP            = (WM_USER + 44)
  570. Const TB_GETBUTTONTEXTA       = (WM_USER + 45)
  571. Const TB_GETBUTTONTEXTW       = (WM_USER + 75)
  572. Const TB_REPLACEBITMAP        = (WM_USER + 46)
  573. Const TB_SETINDENT            = (WM_USER + 47)
  574. Const TB_SETIMAGELIST         = (WM_USER + 48)
  575. Const TB_GETIMAGELIST         = (WM_USER + 49)
  576. Const TB_LOADIMAGES           = (WM_USER + 50)
  577. Const TB_GETRECT              = (WM_USER + 51)
  578. Const TB_SETHOTIMAGELIST      = (WM_USER + 52)
  579. Const TB_GETHOTIMAGELIST      = (WM_USER + 53)
  580. Const TB_SETDISABLEDIMAGELIST = (WM_USER + 54)
  581. Const TB_GETDISABLEDIMAGELIST = (WM_USER + 55)
  582. Const TB_SETSTYLE             = (WM_USER + 56)
  583. Const TB_GETSTYLE             = (WM_USER + 57)
  584. Const TB_GETBUTTONSIZE        = (WM_USER + 58)
  585. Const TB_SETBUTTONWIDTH       = (WM_USER + 59)
  586. Const TB_SETMAXTEXTROWS       = (WM_USER + 60)
  587. Const TB_GETTEXTROWS          = (WM_USER + 61)
  588. Const TB_GETOBJECT            = (WM_USER + 62)
  589. Const TB_GETBUTTONINFOW       = (WM_USER + 63)
  590. Const TB_SETBUTTONINFOW       = (WM_USER + 64)
  591. Const TB_GETBUTTONINFOA       = (WM_USER + 65)
  592. Const TB_SETBUTTONINFOA       = (WM_USER + 66)
  593. Const TB_INSERTBUTTONW        = (WM_USER + 67)
  594. Const TB_ADDBUTTONSW          = (WM_USER + 68)
  595. Const TB_HITTEST              = (WM_USER + 69)
  596. Const TB_SETDRAWTEXTFLAGS     = (WM_USER + 70)
  597. Const TB_GETHOTITEM           = (WM_USER + 71)
  598. Const TB_SETHOTITEM           = (WM_USER + 72)
  599. Const TB_SETANCHORHIGHLIGHT   = (WM_USER + 73)
  600. Const TB_GETANCHORHIGHLIGHT   = (WM_USER + 74)
  601. Const TB_SAVERESTOREW         = (WM_USER + 76)
  602. Const TB_ADDSTRINGW           = (WM_USER + 77)
  603. Const TB_MAPACCELERATORA      = (WM_USER + 78)
  604. Const TB_GETINSERTMARK        = (WM_USER + 79)
  605. Const TB_SETINSERTMARK        = (WM_USER + 80)
  606. Const TB_INSERTMARKHITTEST    = (WM_USER + 81)
  607. Const TB_MOVEBUTTON           = (WM_USER + 82)
  608. Const TB_GETMAXSIZE           = (WM_USER + 83)
  609. Const TB_SETEXTENDEDSTYLE     = (WM_USER + 84)
  610. Const TB_GETEXTENDEDSTYLE     = (WM_USER + 85)
  611. Const TB_GETPADDING           = (WM_USER + 86)
  612. Const TB_SETPADDING           = (WM_USER + 87)
  613. Const TB_SETINSERTMARKCOLOR   = (WM_USER + 88)
  614. Const TB_GETINSERTMARKCOLOR   = (WM_USER + 89)
  615. ;#End Region
  616.  
  617. ;#Region ToolBar Notifications
  618. Const TTN_NEEDTEXTA           = ((0-520)-0)
  619. Const TTN_NEEDTEXTW           = ((0-520)-10)
  620. Const TBN_QUERYINSERT         = ((0-700)-6)
  621. Const TBN_DROPDOWN            = ((0-700)-10)
  622. Const TBN_HOTITEMCHANGE       = ((0 - 700) - 13)
  623. ;#End Region
  624.  
  625. ;#Region Reflected Messages
  626. Const OCM__BASE               = (WM_USER+$1c00)
  627. Const OCM_COMMAND             = (OCM__BASE + WM_COMMAND)
  628. Const OCM_CTLCOLORBTN         = (OCM__BASE + WM_CTLCOLORBTN)
  629. Const OCM_CTLCOLOREDIT        = (OCM__BASE + WM_CTLCOLOREDIT)
  630. Const OCM_CTLCOLORDLG         = (OCM__BASE + WM_CTLCOLORDLG)
  631. Const OCM_CTLCOLORLISTBOX     = (OCM__BASE + WM_CTLCOLORLISTBOX)
  632. Const OCM_CTLCOLORMSGBOX      = (OCM__BASE + WM_CTLCOLORMSGBOX)
  633. Const OCM_CTLCOLORSCROLLBAR   = (OCM__BASE + WM_CTLCOLORSCROLLBAR)
  634. Const OCM_CTLCOLORSTATIC      = (OCM__BASE + WM_CTLCOLORSTATIC)
  635. Const OCM_CTLCOLOR            = (OCM__BASE + WM_CTLCOLOR)
  636. Const OCM_DRAWITEM            = (OCM__BASE + WM_DRAWITEM)
  637. Const OCM_MEASUREITEM         = (OCM__BASE + WM_MEASUREITEM)
  638. Const OCM_DELETEITEM          = (OCM__BASE + WM_DELETEITEM)
  639. Const OCM_VKEYTOITEM          = (OCM__BASE + WM_VKEYTOITEM)
  640. Const OCM_CHARTOITEM          = (OCM__BASE + WM_CHARTOITEM)
  641. Const OCM_COMPAREITEM         = (OCM__BASE + WM_COMPAREITEM)
  642. Const OCM_HSCROLL             = (OCM__BASE + WM_HSCROLL)
  643. Const OCM_VSCROLL             = (OCM__BASE + WM_VSCROLL)
  644. Const OCM_PARENTNOTIFY        = (OCM__BASE + WM_PARENTNOTIFY)
  645. Const OCM_NOTIFY              = (OCM__BASE + WM_NOTIFY)
  646. ;#End Region
  647.  
  648. ;#Region Notification Messages
  649. Const NM_FIRST      = (0-0)
  650. Const NM_CUSTOMDRAW = (NM_FIRST-12)
  651. Const NM_NCHITTEST  = (NM_FIRST-14)
  652. ;#End Region
  653.  
  654. ;#Region ToolTip Flags
  655. Const TTF_CENTERTIP           = $0002
  656. Const TTF_RTLREADING          = $0004
  657. Const TTF_SUBCLASS            = $0010
  658. Const TTF_TRACK               = $0020
  659. Const TTF_ABSOLUTE            = $0080
  660. Const TTF_TRANSPARENT         = $0100
  661. Const TTF_DI_SETITEM          = $8000
  662. ;#End Region
  663.  
  664. ;#Region Custom Draw Return Flags
  665. Const CDRF_DODEFAULT          = $00000000
  666. Const CDRF_NEWFONT            = $00000002
  667. Const CDRF_SKIPDEFAULT        = $00000004
  668. Const CDRF_NOTIFYPOSTPAINT    = $00000010
  669. Const CDRF_NOTIFYITEMDRAW     = $00000020
  670. Const CDRF_NOTIFYSUBITEMDRAW  = $00000020
  671. Const CDRF_NOTIFYPOSTERASE    = $00000040
  672. ;#End Region
  673.  
  674. ;#Region Custom Draw Item State Flags
  675. Const CDIS_SELECTED       = $0001
  676. Const CDIS_GRAYED         = $0002
  677. Const CDIS_DISABLED       = $0004
  678. Const CDIS_CHECKED        = $0008
  679. Const CDIS_FOCUS          = $0010
  680. Const CDIS_DEFAULT        = $0020
  681. Const CDIS_HOT            = $0040
  682. Const CDIS_MARKED         = $0080
  683. Const CDIS_INDETERMINATE  = $0100
  684. ;#End Region
  685.  
  686. ;#Region Custom Draw Draw State Flags
  687. Const CDDS_PREPAINT           = $00000001
  688. Const CDDS_POSTPAINT          = $00000002
  689. Const CDDS_PREERASE           = $00000003
  690. Const CDDS_POSTERASE          = $00000004
  691. Const CDDS_ITEM               = $00010000
  692. Const CDDS_ITEMPREPAINT       = (CDDS_ITEM Or CDDS_PREPAINT)
  693. Const CDDS_ITEMPOSTPAINT      = (CDDS_ITEM Or CDDS_POSTPAINT)
  694. Const CDDS_ITEMPREERASE       = (CDDS_ITEM Or CDDS_PREERASE)
  695. Const CDDS_ITEMPOSTERASE      = (CDDS_ITEM Or CDDS_POSTERASE)
  696. Const CDDS_SUBITEM            = $00020000
  697. ;#End Region
  698.  
  699. ;#Region Toolbar button info flags
  700. Const TBIF_IMAGE             = $00000001
  701. Const TBIF_TEXT              = $00000002
  702. Const TBIF_STATE             = $00000004
  703. Const TBIF_STYLE             = $00000008
  704. Const TBIF_LPARAM            = $00000010
  705. Const TBIF_COMMAND           = $00000020
  706. Const TBIF_SIZE              = $00000040
  707. Const I_IMAGECALLBACK        = -1
  708. Const I_IMAGENONE            = -2
  709. ;#End Region
  710.  
  711. ;#Region Toolbar button state
  712. Const TBSTATE_CHECKED         = $01
  713. Const TBSTATE_PRESSED         = $02
  714. Const TBSTATE_ENABLED         = $04
  715. Const TBSTATE_HIDDEN          = $08
  716. Const TBSTATE_INDETERMINATE   = $10
  717. Const TBSTATE_WRAP            = $20
  718. Const TBSTATE_ELLIPSES        = $40
  719. Const TBSTATE_MARKED          = $80
  720. ;#End Region
  721.  
  722. ;#Region Windows Hook Codes
  723. Const WH_MSGFILTER        = (-1)
  724. Const WH_JOURNALRECORD    = 0
  725. Const WH_JOURNALPLAYBACK  = 1
  726. Const WH_KEYBOARD         = 2
  727. Const WH_GETMESSAGE       = 3
  728. Const WH_CALLWNDPROC      = 4
  729. Const WH_CBT              = 5
  730. Const WH_SYSMSGFILTER     = 6
  731. Const WH_MOUSE            = 7
  732. Const WH_HARDWARE         = 8
  733. Const WH_DEBUG            = 9
  734. Const WH_SHELL            = 10
  735. Const WH_FOREGROUNDIDLE   = 11
  736. Const WH_CALLWNDPROCRET   = 12
  737. Const WH_KEYBOARD_LL      = 13
  738. Const WH_MOUSE_LL         = 14
  739. ;#End Region
  740.  
  741. ;#Region Mouse Hook Filters
  742. Const MSGF_DIALOGBOX      = 0
  743. Const MSGF_MESSAGEBOX     = 1
  744. Const MSGF_MENU           = 2
  745. Const MSGF_SCROLLBAR      = 5
  746. Const MSGF_NEXTWINDOW     = 6
  747. ;#End Region
  748.  
  749. ;#Region Draw Text format flags
  750. Const DT_TOP              = $00000000
  751. Const DT_LEFT             = $00000000
  752. Const DT_CENTER           = $00000001
  753. Const DT_RIGHT            = $00000002
  754. Const DT_VCENTER          = $00000004
  755. Const DT_BOTTOM           = $00000008
  756. Const DT_WORDBREAK        = $00000010
  757. Const DT_SINGLELINE       = $00000020
  758. Const DT_EXPANDTABS       = $00000040
  759. Const DT_TABSTOP          = $00000080
  760. Const DT_NOCLIP           = $00000100
  761. Const DT_EXTERNALLEADING  = $00000200
  762. Const DT_CALCRECT         = $00000400
  763. Const DT_NOPREFIX         = $00000800
  764. Const DT_INTERNAL         = $00001000
  765. Const DT_EDITCONTROL      = $00002000
  766. Const DT_PATH_ELLIPSIS    = $00004000
  767. Const DT_END_ELLIPSIS     = $00008000
  768. Const DT_MODIFYSTRING     = $00010000
  769. Const DT_RTLREADING       = $00020000
  770. Const DT_WORD_ELLIPSIS    = $00040000
  771. ;#End Region
  772.  
  773. ;#Region Rebar Styles
  774. Const RBS_TOOLTIPS        = $0100
  775. Const RBS_VARHEIGHT       = $0200
  776. Const RBS_BANDBORDERS     = $0400
  777. Const RBS_FIXEDORDER      = $0800
  778. Const RBS_REGISTERDROP    = $1000
  779. Const RBS_AUTOSIZE        = $2000
  780. Const RBS_VERTICALGRIPPER = $4000
  781. Const RBS_DBLCLKTOGGLE    = $8000
  782. ;#End Region
  783.  
  784. ;#Region Rebar Notifications
  785. Const RBN_FIRST           = (0-831)
  786. Const RBN_HEIGHTCHANGE    = (RBN_FIRST - 0)
  787. Const RBN_GETOBJECT       = (RBN_FIRST - 1)
  788. Const RBN_LAYOUTCHANGED   = (RBN_FIRST - 2)
  789. Const RBN_AUTOSIZE        = (RBN_FIRST - 3)
  790. Const RBN_BEGINDRAG       = (RBN_FIRST - 4)
  791. Const RBN_ENDDRAG         = (RBN_FIRST - 5)
  792. Const RBN_DELETINGBAND    = (RBN_FIRST - 6)
  793. Const RBN_DELETEDBAND     = (RBN_FIRST - 7)
  794. Const RBN_CHILDSIZE       = (RBN_FIRST - 8)
  795. Const RBN_CHEVRONPUSHED   = (RBN_FIRST - 10)
  796. ;#End Region
  797.  
  798. ;#Region Rebar Messages
  799. Const CCM_FIRST           =    $2000
  800. Const RB_INSERTBANDA      =(WM_USER +  1)
  801. Const RB_DELETEBAND       =(WM_USER +  2)
  802. Const RB_GETBARINFO       =(WM_USER +  3)
  803. Const RB_SETBARINFO       =(WM_USER +  4)
  804. Const RB_GETBANDINFO      =(WM_USER +  5)
  805. Const RB_SETBANDINFOA     =(WM_USER +  6)
  806. Const RB_SETPARENT        =(WM_USER +  7)
  807. Const RB_HITTEST          =(WM_USER +  8)
  808. Const RB_GETRECT          =(WM_USER +  9)
  809. Const RB_INSERTBANDW      =(WM_USER +  10)
  810. Const RB_SETBANDINFOW     =(WM_USER +  11)
  811. Const RB_GETBANDCOUNT     =(WM_USER +  12)
  812. Const RB_GETROWCOUNT      =(WM_USER +  13)
  813. Const RB_GETROWHEIGHT     =(WM_USER +  14)
  814. Const RB_IDTOINDEX        =(WM_USER +  16)
  815. Const RB_GETTOOLTIPS      =(WM_USER +  17)
  816. Const RB_SETTOOLTIPS      =(WM_USER +  18)
  817. Const RB_SETBKCOLOR       =(WM_USER +  19)
  818. Const RB_GETBKCOLOR       =(WM_USER +  20)
  819. Const RB_SETTEXTCOLOR     =(WM_USER +  21)
  820. Const RB_GETTEXTCOLOR     =(WM_USER +  22)
  821. Const RB_SIZETORECT       =(WM_USER +  23)
  822. Const RB_SETCOLORSCHEME   =(CCM_FIRST + 2)
  823. Const RB_GETCOLORSCHEME   =(CCM_FIRST + 3)
  824. Const RB_BEGINDRAG        =(WM_USER + 24)
  825. Const RB_ENDDRAG          =(WM_USER + 25)
  826. Const RB_DRAGMOVE         =(WM_USER + 26)
  827. Const RB_GETBARHEIGHT     =(WM_USER + 27)
  828. Const RB_GETBANDINFOW     =(WM_USER + 28)
  829. Const RB_GETBANDINFOA     =(WM_USER + 29)
  830. Const RB_MINIMIZEBAND     =(WM_USER + 30)
  831. Const RB_MAXIMIZEBAND     =(WM_USER + 31)
  832. Const RB_GETDROPTARGET    =(CCM_FIRST + 4)
  833. Const RB_GETBANDBORDERS   =(WM_USER + 34)
  834. Const RB_SHOWBAND         =(WM_USER + 35)
  835. Const RB_SETPALETTE       =(WM_USER + 37)
  836. Const RB_GETPALETTE       =(WM_USER + 38)
  837. Const RB_MOVEBAND         =(WM_USER + 39)
  838. Const RB_SETUNICODEFORMAT =   (CCM_FIRST + 5)
  839. Const RB_GETUNICODEFORMAT =   (CCM_FIRST + 6)
  840. ;#End Region
  841.  
  842. ;#Region Rebar Info Mask
  843. Const RBBIM_STYLE         = $00000001
  844. Const RBBIM_COLORS        = $00000002
  845. Const RBBIM_TEXT          = $00000004
  846. Const RBBIM_IMAGE         = $00000008
  847. Const RBBIM_CHILD         = $00000010
  848. Const RBBIM_CHILDSIZE     = $00000020
  849. Const RBBIM_SIZE          = $00000040
  850. Const RBBIM_BACKGROUND    = $00000080
  851. Const RBBIM_ID            = $00000100
  852. Const RBBIM_IDEALSIZE     = $00000200
  853. Const RBBIM_LPARAM        = $00000400
  854. Const BBIM_HEADERSIZE     = $00000800
  855. ;#End Region
  856.  
  857. ;#Region Rebar Styles
  858. Const RBBS_BREAK              = $1
  859. Const RBBS_CHILDEDGE          = $4
  860. Const RBBS_FIXEDBMP           = $20
  861. Const RBBS_GRIPPERALWAYS= $80
  862. Const RBBS_USECHEVRON         = $200
  863. ;#End Region
  864.  
  865. ;#Region Object types
  866. Const OBJ_PEN             = 1
  867. Const OBJ_BRUSH           = 2
  868. Const OBJ_DC              = 3
  869. Const OBJ_METADC          = 4
  870. Const OBJ_PAL             = 5
  871. Const OBJ_FONT            = 6
  872. Const OBJ_BITMAP          = 7
  873. Const OBJ_REGION          = 8
  874. Const OBJ_METAFILE        = 9
  875. Const OBJ_MEMDC           = 10
  876. Const OBJ_EXTPEN          = 11
  877. Const OBJ_ENHMETADC       = 12
  878. Const OBJ_ENHMETAFILE     = 13
  879. ;#End Region
  880.  
  881. ;#Region WM_MENUCHAR Return values
  882. Const MNC_IGNORE  = 0
  883. Const MNC_CLOSE   = 1
  884. Const MNC_EXECUTE = 2
  885. Const MNC_SELECT  = 3
  886. ;#End Region
  887.  
  888. ;#Region Background Mode
  889. Const TRANSPARENT = 1
  890. Const OPAQUE = 2
  891. ;#End Region
  892.  
  893. ;#Region ListView Messages
  894. Const LVM_FIRST           =    $1000
  895. Const LVM_GETSUBITEMRECT  = (LVM_FIRST + 56)
  896. Const LVM_GETITEMSTATE    = (LVM_FIRST + 44)
  897. Const LVM_GETITEMTEXTW    = (LVM_FIRST + 115)
  898. ;#End Region
  899.  
  900. ;#Region Header Control Messages
  901. Const HDM_FIRST        =  $1200
  902. Const HDM_GETITEMRECT  = (HDM_FIRST + 7)
  903. Const HDM_HITTEST      = (HDM_FIRST + 6)
  904. Const HDM_SETIMAGELIST = (HDM_FIRST + 8)
  905. Const HDM_GETITEMW     = (HDM_FIRST + 11)
  906. Const HDM_ORDERTOINDEX = (HDM_FIRST + 15)
  907. ;#End Region
  908.  
  909. ;#Region Header Control Notifications
  910. Const HDN_FIRST       = (0-300)
  911. Const HDN_BEGINTRACKW = (HDN_FIRST-26)
  912. Const HDN_ENDTRACKW   = (HDN_FIRST-27)
  913. Const HDN_ITEMCLICKW  = (HDN_FIRST-22)
  914. ;#End Region
  915.  
  916. ;#Region Header Control HitTest Flags
  917. Const HHT_NOWHERE             = $0001
  918. Const HHT_ONHEADER            = $0002
  919. Const HHT_ONDIVIDER           = $0004
  920. Const HHT_ONDIVOPEN           = $0008
  921. Const HHT_ABOVE               = $0100
  922. Const HHT_BELOW               = $0200
  923. Const HHT_TORIGHT             = $0400
  924. Const HHT_TOLEFT              = $0800
  925. ;#End Region
  926.  
  927. ;#Region List View sub item portion
  928. Const LVIR_BOUNDS = 0
  929. Const LVIR_ICON   = 1
  930. Const LVIR_LABEL  = 2
  931. ;#End Region
  932.  
  933. ;#Region Cursor Type
  934. Const IDC_ARROW       = 32512
  935. Const IDC_IBEAM       = 32513
  936. Const IDC_WAIT        = 32514
  937. Const IDC_CROSS       = 32515
  938. Const IDC_UPARROW     = 32516
  939. Const IDC_SIZE        = 32640
  940. Const IDC_ICON        = 32641
  941. Const IDC_SIZENWSE    = 32642
  942. Const IDC_SIZENESW    = 32643
  943. Const IDC_SIZEWE      = 32644
  944. Const IDC_SIZENS      = 32645
  945. Const IDC_SIZEALL     = 32646
  946. Const IDC_NO          = 32648
  947. Const IDC_HAND        = 32649
  948. Const IDC_APPSTARTING = 32650
  949. Const IDC_HELP        = 32651
  950. ;#End Region
  951.  
  952. ;#Region Tracker Event Flags
  953. Const TME_HOVER= $00000001
  954. Const TME_LEAVE= $00000002
  955. Const TME_QUERY= $40000000
  956. Const TME_CANCEL= $80000000
  957. ;#End Region
  958.  
  959. ;#Region Mouse Activate Flags
  960. Const MA_ACTIVATE          = 1
  961. Const MA_ACTIVATEANDEAT    = 2
  962. Const MA_NOACTIVATE        = 3
  963. Const MA_NOACTIVATEANDEAT  = 4
  964. ;#End Region
  965.  
  966. ;#Region Dialog Codes
  967. Const DLGC_WANTARROWS         = $0001
  968. Const DLGC_WANTTAB            = $0002
  969. Const DLGC_WANTALLKEYS        = $0004
  970. Const DLGC_WANTMESSAGE        = $0004
  971. Const DLGC_HASSETSEL          = $0008
  972. Const DLGC_DEFPUSHBUTTON      = $0010
  973. Const DLGC_UNDEFPUSHBUTTON= $0020
  974. Const DLGC_RADIOBUTTON        = $0040
  975. Const DLGC_WANTCHARS          = $0080
  976. Const DLGC_STATIC             = $0100
  977. Const DLGC_BUTTON             = $2000
  978. ;#End Region
  979.  
  980. ;#Region Update Layered Windows Flags
  981. Const ULW_COLORKEY = $00000001
  982. Const ULW_ALPHA    = $00000002
  983. Const ULW_OPAQUE   = $00000004
  984. ;#End Region
  985.  
  986. ;#Region Blend Flags
  987. Const AC_SRC_OVER  = $00
  988. Const AC_SRC_ALPHA = $01
  989. ;#End Region
  990.  
  991. ;#Region ComboBox messages
  992. Const CB_GETDROPPEDSTATE = $0157
  993. ;#End Region
  994.  
  995. ;#Region TreeView Messages
  996. Const TV_FIRST            =  $1100
  997. Const TVM_GETITEMRECT     = (TV_FIRST + 4)
  998. Const TVM_SETIMAGELIST  = (TV_FIRST + 9)
  999. Const TVM_HITTEST         = (TV_FIRST + 17)
  1000. Const TVM_SORTCHILDRENCB  = (TV_FIRST + 21)
  1001. Const TVM_GETITEMW        = (TV_FIRST + 62)
  1002. Const TVM_SETITEMW        = (TV_FIRST + 63)
  1003. Const TVM_INSERTITEMW     = (TV_FIRST + 50)
  1004. ;#End Region
  1005.  
  1006. ;#Region TreeViewImageListFlags
  1007. Const TVSIL_NORMAL  = 0
  1008. Const TVSIL_STATE   = 2
  1009. ;#End Region
  1010.  
  1011. ;#Region TreeViewItem Flags
  1012. Const TVIF_NONE               = $0000
  1013. Const TVIF_TEXT               = $0001
  1014. Const TVIF_IMAGE              = $0002
  1015. Const TVIF_PARAM              = $0004
  1016. Const TVIF_STATE              = $0008
  1017. Const TVIF_HANDLE             = $0010
  1018. Const TVIF_SELECTEDIMAGE      = $0020
  1019. Const TVIF_CHILDREN           = $0040
  1020. Const TVIF_INTEGRAL           = $0080
  1021. Const I_CHILDRENCALLBACK      = -1
  1022. Const LPSTR_TEXTCALLBACK      = -1
  1023. ;Const I_IMAGECALLBACK   = -1
  1024. ;Const I_IMAGENONE             = -2
  1025. ;#End Region
  1026.  
  1027. ;#Region ListViewItem flags
  1028. Const LVIF_TEXT               = $0001
  1029. Const LVIF_IMAGE              = $0002
  1030. Const LVIF_PARAM              = $0004
  1031. Const LVIF_STATE              = $0008
  1032. Const LVIF_INDENT             = $0010
  1033. Const LVIF_NORECOMPUTE        = $0800
  1034. ;#End Region
  1035.  
  1036. ;#Region HeaderItem flags
  1037. Const HDI_WIDTH               = $0001
  1038. Const HDI_HEIGHT              = HDI_WIDTH
  1039. Const HDI_TEXT                = $0002
  1040. Const HDI_FORMAT              = $0004
  1041. Const HDI_LPARAM              = $0008
  1042. Const HDI_BITMAP              = $0010
  1043. Const HDI_IMAGE               = $0020
  1044. Const HDI_DI_SETITEM          = $0040
  1045. Const HDI_ORDER               = $0080
  1046. ;#End Region
  1047.  
  1048. ;#Region GetDCExFlags
  1049. Const DCX_WINDOW           = $00000001
  1050. Const DCX_CACHE            = $00000002
  1051. Const DCX_NORESETATTRS     = $00000004
  1052. Const DCX_CLIPCHILDREN     = $00000008
  1053. Const DCX_CLIPSIBLINGS     = $00000010
  1054. Const DCX_PARENTCLIP       = $00000020
  1055. Const DCX_EXCLUDERGN       = $00000040
  1056. Const DCX_INTERSECTRGN     = $00000080
  1057. Const DCX_EXCLUDEUPDATE    = $00000100
  1058. Const DCX_INTERSECTUPDATE  = $00000200
  1059. Const DCX_LOCKWINDOWUPDATE = $00000400
  1060. Const DCX_VALIDATE         = $00200000
  1061. ;#End Region
  1062.  
  1063. ;#Region HitTest
  1064. Const HTERROR             = (-2)
  1065. Const HTTRANSPARENT       = (-1)
  1066. Const HTNOWHERE           =   0
  1067. Const HTCLIENT            =   1
  1068. Const HTCAPTION           =   2
  1069. Const HTSYSMENU           =   3
  1070. Const HTGROWBOX           =   4
  1071. Const HTSIZE              =   HTGROWBOX
  1072. Const HTMENU              =   5
  1073. Const HTHSCROLL           =   6
  1074. Const HTVSCROLL           =   7
  1075. Const HTMINBUTTON         =   8
  1076. Const HTMAXBUTTON         =   9
  1077. Const HTLEFT              =   10
  1078. Const HTRIGHT             =   11
  1079. Const HTTOP               =   12
  1080. Const HTTOPLEFT           =   13
  1081. Const HTTOPRIGHT          =   14
  1082. Const HTBOTTOM            =   15
  1083. Const HTBOTTOMLEFT        =   16
  1084. Const HTBOTTOMRIGHT       =   17
  1085. Const HTBORDER            =   18
  1086. Const HTREDUCE            =   HTMINBUTTON
  1087. Const HTZOOM              =   HTMAXBUTTON
  1088. Const HTSIZEFIRST         =   HTLEFT
  1089. Const HTSIZELAST          =   HTBOTTOMRIGHT
  1090. Const HTOBJECT            =   19
  1091. Const HTCLOSE             =   20
  1092. Const HTHELP              =   21
  1093. ;#End Region
  1094.  
  1095. ;#Region ActivateFlags
  1096. Const WA_INACTIVE     = 0
  1097. Const WA_ACTIVE       = 1
  1098. Const WA_CLICKACTIVE  = 2
  1099. ;#End Region
  1100.  
  1101. ;#Region StrechModeFlags
  1102. Const BLACKONWHITEConst   = 1
  1103. Const WHITEONBLACK        = 2
  1104. Const COLORONCOLOR        = 3
  1105. Const HALFTONE            = 4
  1106. Const MAXSTRETCHBLTMODE   = 4
  1107. ;#End Region
  1108.  
  1109. ;#Region ScrollBarFlags
  1110. Const SBS_HORZ                    = $0000
  1111. Const SBS_VERT                    = $0001
  1112. Const SBS_TOPALIGN                = $0002
  1113. Const SBS_LEFTALIGN               = $0002
  1114. Const SBS_BOTTOMALIGN             = $0004
  1115. Const SBS_RIGHTALIGN              = $0004
  1116. Const SBS_SIZEBOXTOPLEFTALIGN     = $0002
  1117. Const SBS_SIZEBOXBOTTOMRIGHTALIGN = $0004
  1118. Const SBS_SIZEBOX                 = $0008
  1119. Const SBS_SIZEGRIP                = $0010
  1120. ;#End Region
  1121.  
  1122. ;#Region System Metrics Codes
  1123. Const SM_CXSCREEN             = 0
  1124. Const SM_CYSCREEN             = 1
  1125. Const SM_CXVSCROLL            = 2
  1126. Const SM_CYHSCROLL            = 3
  1127. Const SM_CYCAPTION            = 4
  1128. Const SM_CXBORDER             = 5
  1129. Const SM_CYBORDER             = 6
  1130. Const SM_CXDLGFRAME           = 7
  1131. Const SM_CYDLGFRAME           = 8
  1132. Const SM_CYVTHUMB             = 9
  1133. Const SM_CXHTHUMB             = 10
  1134. Const SM_CXICON               = 11
  1135. Const SM_CYICON               = 12
  1136. Const SM_CXCURSOR             = 13
  1137. Const SM_CYCURSOR             = 14
  1138. Const SM_CYMENU               = 15
  1139. Const SM_CXFULLSCREEN         = 16
  1140. Const SM_CYFULLSCREEN         = 17
  1141. Const SM_CYKANJIWINDOW        = 18
  1142. Const SM_MOUSEPRESENT         = 19
  1143. Const SM_CYVSCROLL            = 20
  1144. Const SM_CXHSCROLL            = 21
  1145. Const SM_DEBUG                = 22
  1146. Const SM_SWAPBUTTON           = 23
  1147. Const SM_RESERVED1            = 24
  1148. Const SM_RESERVED2            = 25
  1149. Const SM_RESERVED3            = 26
  1150. Const SM_RESERVED4            = 27
  1151. Const SM_CXMIN                = 28
  1152. Const SM_CYMIN                = 29
  1153. Const SM_CXSIZE               = 30
  1154. Const SM_CYSIZE               = 31
  1155. Const SM_CXFRAME              = 32
  1156. Const SM_CYFRAME              = 33
  1157. Const SM_CXMINTRACK           = 34
  1158. Const SM_CYMINTRACK           = 35
  1159. Const SM_CXDOUBLECLK          = 36
  1160. Const SM_CYDOUBLECLK          = 37
  1161. Const SM_CXICONSPACING        = 38
  1162. Const SM_CYICONSPACING        = 39
  1163. Const SM_MENUDROPALIGNMENT    = 40
  1164. Const SM_PENWINDOWS           = 41
  1165. Const SM_DBCSENABLED          = 42
  1166. Const SM_CMOUSEBUTTONS        = 43
  1167. Const SM_CXFIXEDFRAME         = SM_CXDLGFRAME
  1168. Const SM_CYFIXEDFRAME         = SM_CYDLGFRAME
  1169. Const SM_CXSIZEFRAME          = SM_CXFRAME
  1170. Const SM_CYSIZEFRAME          = SM_CYFRAME
  1171. Const SM_SECURE               = 44
  1172. Const SM_CXEDGE               = 45
  1173. Const SM_CYEDGE               = 46
  1174. Const SM_CXMINSPACING         = 47
  1175. Const SM_CYMINSPACING         = 48
  1176. Const SM_CXSMICON             = 49
  1177. Const SM_CYSMICON             = 50
  1178. Const SM_CYSMCAPTION          = 51
  1179. Const SM_CXSMSIZE             = 52
  1180. Const SM_CYSMSIZE             = 53
  1181. Const SM_CXMENUSIZE           = 54
  1182. Const SM_CYMENUSIZE           = 55
  1183. Const SM_ARRANGE              = 56
  1184. Const SM_CXMINIMIZED          = 57
  1185. Const SM_CYMINIMIZED          = 58
  1186. Const SM_CXMAXTRACK           = 59
  1187. Const SM_CYMAXTRACK           = 60
  1188. Const SM_CXMAXIMIZED          = 61
  1189. Const SM_CYMAXIMIZED          = 62
  1190. Const SM_NETWORK              = 63
  1191. Const SM_CLEANBOOT            = 67
  1192. Const SM_CXDRAG               = 68
  1193. Const SM_CYDRAG               = 69
  1194. Const SM_SHOWSOUNDS           = 70
  1195. Const SM_CXMENUCHECK          = 71
  1196. Const SM_CYMENUCHECK          = 72
  1197. Const SM_SLOWMACHINE          = 73
  1198. Const SM_MIDEASTENABLED       = 74
  1199. Const SM_MOUSEWHEELPRESENT    = 75
  1200. Const SM_XVIRTUALSCREEN       = 76
  1201. Const SM_YVIRTUALSCREEN       = 77
  1202. Const SM_CXVIRTUALSCREEN      = 78
  1203. Const SM_CYVIRTUALSCREEN      = 79
  1204. Const SM_CMONITORS            = 80
  1205. Const SM_SAMEDISPLAYFORMAT    = 81
  1206. Const SM_CMETRICS             = 83
  1207. ;#End Region
  1208.  
  1209. ;#Region ScrollBarTypes
  1210. Const SB_HORZ  = 0
  1211. Const SB_VERT  = 1
  1212. Const SB_CTL   = 2
  1213. Const SB_BOTH  = 3
  1214. ;#End Region
  1215.  
  1216. ;#Region SrollBarInfoFlags
  1217. Const SIF_RANGE           = $0001
  1218. Const SIF_PAGE            = $0002
  1219. Const SIF_POS             = $0004
  1220. Const SIF_DISABLENOSCROLL = $0008
  1221. Const SIF_TRACKPOS        = $0010
  1222. Const SIF_ALL             = (SIF_RANGE Or SIF_PAGE Or SIF_POS Or SIF_TRACKPOS)
  1223. ;#End Region
  1224.  
  1225. ;#Region Enable ScrollBar flags
  1226. Const ESB_ENABLE_BOTH     = $0000
  1227. Const ESB_DISABLE_BOTH    = $0003
  1228. Const ESB_DISABLE_LEFT    = $0001
  1229. Const ESB_DISABLE_RIGHT   = $0002
  1230. Const ESB_DISABLE_UP      = $0001
  1231. Const ESB_DISABLE_DOWN    = $0002
  1232. Const ESB_DISABLE_LTUP    = ESB_DISABLE_LEFT
  1233. Const ESB_DISABLE_RTDN    = ESB_DISABLE_RIGHT
  1234. ;#End Region
  1235.  
  1236. ;#Region Scroll Requests
  1237. Const SB_LINEUP           = 0
  1238. Const SB_LINELEFT         = 0
  1239. Const SB_LINEDOWN         = 1
  1240. Const SB_LINERIGHT        = 1
  1241. Const SB_PAGEUP           = 2
  1242. Const SB_PAGELEFT         = 2
  1243. Const SB_PAGEDOWN         = 3
  1244. Const SB_PAGERIGHT        = 3
  1245. Const SB_THUMBPOSITION    = 4
  1246. Const SB_THUMBTRACK       = 5
  1247. Const SB_TOP              = 6
  1248. Const SB_LEFT             = 6
  1249. Const SB_BOTTOM           = 7
  1250. Const SB_RIGHT            = 7
  1251. Const SB_ENDSCROLL        = 8
  1252. ;#End Region
  1253.  
  1254. ;#Region SrollWindowEx flags
  1255. Const SW_SCROLLCHILDREN   = $0001
  1256. Const SW_INVALIDATE       = $0002
  1257. Const SW_ERASE            = $0004
  1258. Const SW_SMOOTHSCROLL     = $0010
  1259. ;#End Region
  1260.  
  1261. ;#region ImageListFlags
  1262. Const ILC_MASK             = $0001
  1263. Const ILC_COLOR            = $0000
  1264. Const ILC_COLORDDB         = $00FE
  1265. Const ILC_COLOR4           = $0004
  1266. Const ILC_COLOR8           = $0008
  1267. Const ILC_COLOR16          = $0010
  1268. Const ILC_COLOR24          = $0018
  1269. Const ILC_COLOR32          = $0020
  1270. Const ILC_PALETTE          = $0800
  1271. ;#end region
  1272.  
  1273. ;#region ImageListDrawFlags
  1274. Const ILD_NORMAL              = $0000
  1275. Const ILD_TRANSPARENT         = $0001
  1276. Const ILD_MASK                = $0010
  1277. Const ILD_IMAGE               = $0020
  1278. Const ILD_ROP                 = $0040
  1279. Const ILD_BLEND25             = $0002
  1280. Const ILD_BLEND50             = $0004
  1281. Const ILD_OVERLAYMASK         = $0F00
  1282. ;#end region
  1283.  
  1284. ;#region List View Notifications
  1285. Const LVN_FIRST             = (0-100)
  1286. Const LVN_GETDISPINFOW      = (LVN_FIRST-77)
  1287. Const LVN_SETDISPINFOA      = (LVN_FIRST-51)
  1288. ;#end region
  1289.  
  1290. ;#region Drive Type
  1291. Const DRIVE_UNKNOWN     = 0
  1292. Const DRIVE_NO_ROOT_DIR = 1
  1293. Const DRIVE_REMOVABLE   = 2
  1294. Const DRIVE_FIXED       = 3
  1295. Const DRIVE_REMOTE      = 4
  1296. Const DRIVE_CDROM       = 5
  1297. Const DRIVE_RAMDISK     = 6
  1298. ;#End region
  1299.  
  1300. ;#region Shell File Info Flags
  1301. Const SHGFI_ICON              = $000000100
  1302. Const SHGFI_DISPLAYNAME       = $000000200
  1303. Const SHGFI_TYPENAME          = $000000400
  1304. Const SHGFI_ATTRIBUTES        = $000000800
  1305. Const SHGFI_ICONLOCATION      = $000001000
  1306. Const SHGFI_EXETYPE           = $000002000
  1307. Const SHGFI_SYSICONINDEX      = $000004000
  1308. Const SHGFI_LINKOVERLAY       = $000008000  
  1309. Const SHGFI_SELECTED          = $000010000
  1310. Const SHGFI_ATTR_SPECIFIED    = $000020000
  1311. Const SHGFI_LARGEICON         = $000000000
  1312. Const SHGFI_SMALLICON         = $000000001
  1313. Const SHGFI_OPENICON          = $000000002
  1314. Const SHGFI_SHELLICONSIZE     = $000000004
  1315. Const SHGFI_PIDL              = $000000008
  1316. Const SHGFI_USEFILEATTRIBUTES = $000000010
  1317. ;#end region
  1318.  
  1319. ;#region Shell Special Folder
  1320. Const CSIDL_DESKTOP                   = $0000
  1321. Const CSIDL_INTERNET                  = $0001
  1322. Const CSIDL_PROGRAMS                  = $0002
  1323. Const CSIDL_CONTROLS                  = $0003
  1324. Const CSIDL_PRINTERS                  = $0004
  1325. Const CSIDL_PERSONAL                  = $0005
  1326. Const CSIDL_FAVORITES                 = $0006
  1327. Const CSIDL_STARTUP                   = $0007
  1328. Const CSIDL_RECENT                    = $0008
  1329. Const CSIDL_SENDTO                    = $0009
  1330. Const CSIDL_BITBUCKET                 = $000a
  1331. Const CSIDL_STARTMENU                 = $000b
  1332. Const CSIDL_DESKTOPDIRECTORY          = $0010
  1333. Const CSIDL_DRIVES                    = $0011
  1334. Const CSIDL_NETWORK                   = $0012
  1335. Const CSIDL_NETHOOD                   = $0013
  1336. Const CSIDL_FONTS                     = $0014
  1337. Const CSIDL_TEMPLATES                 = $0015
  1338. Const CSIDL_COMMON_STARTMENU          = $0016
  1339. Const CSIDL_COMMON_PROGRAMS           = $0017
  1340. Const CSIDL_COMMON_STARTUP            = $0018
  1341. Const CSIDL_COMMON_DESKTOPDIRECTORY   = $0019
  1342. Const CSIDL_APPDATA                   = $001a
  1343. Const CSIDL_PRINTHOOD                 = $001b
  1344. Const CSIDL_ALTSTARTUP                = $001d        
  1345. Const CSIDL_COMMON_ALTSTARTUP         = $001e        
  1346. Const CSIDL_COMMON_FAVORITES          = $001f
  1347. Const CSIDL_INTERNET_CACHE            = $0020
  1348. Const CSIDL_COOKIES                   = $0021
  1349. Const CSIDL_HISTORY                   = $0022
  1350. ;#end region
  1351.  
  1352. ;#region ImageList Draw Colors
  1353. Const CLR_NONE= $FFFFFFFF
  1354. Const CLR_DEFAULT       = $FF000000
  1355. ;#end region
  1356.  
  1357. ;#region ShellEnumFlags
  1358. Const SHCONTF_FOLDERS         = 32      ;// For shell browser
  1359. Const SHCONTF_NONFOLDERS      = 64      ;// For Default view
  1360. Const SHCONTF_INCLUDEHIDDEN   = 128     ;// For hidden/system objects
  1361. ;#end region
  1362.  
  1363. ;#region ShellGetDisplayNameOfFlags
  1364. Const SHGDN_NORMALConst        = 0         ;// Default (display purpose)
  1365. Const SHGDN_INFOLDERConst      = 1         ;// displayed under a folder (relative)
  1366. Const SHGDN_INCLUDE_NONFILESYS = $2000;// If Not set display names For shell name space items that are Not in the file system will fail.
  1367. Const SHGDN_FORADDRESSBARConst = $4000     ;// For displaying in the address (drives dropdown) bar
  1368. Const SHGDN_FORPARSINGConst  = $8000     ;// For ParseDisplayName Or path
  1369. ;#end region
  1370.  
  1371. ;#region STRRETFlags
  1372. Const STRRET_WSTR     = $0000;// Use STRRET.pOleStr
  1373. Const STRRET_OFFSET   = $0001;// Use STRRET.uOffset To Ansi
  1374. Const STRRET_CSTR     = $0002;// Use STRRET.cStr
  1375. ;#end region
  1376.  
  1377. ;#region GetAttributeOfFlags
  1378. Const DROPEFFECT_NONE     = 0
  1379. Const DROPEFFECT_COPY     = 1
  1380. Const DROPEFFECT_MOVE     = 2
  1381. Const DROPEFFECT_LINK     = 4
  1382. Const DROPEFFECT_SCROLL     = $80000000
  1383. Const SFGAO_CANCOPY          = DROPEFFECT_COPY;// Objects can be copied
  1384. Const SFGAO_CANMOVE          = DROPEFFECT_MOVE;// Objects can be moved
  1385. Const SFGAO_CANLINK          = DROPEFFECT_LINK;// Objects can be linked
  1386. Const SFGAO_CANRENAME        = $00000010;// Objects can be renamed
  1387. Const SFGAO_CANDELETE        = $00000020;// Objects can be deleted
  1388. Const SFGAO_HASPROPSHEET     = $00000040;// Objects have property sheets
  1389. Const SFGAO_DROPTARGET       = $00000100;// Objects are drop target
  1390. Const SFGAO_CAPABILITYMASK   = $00000177
  1391. Const SFGAO_LINK             = $00010000;// Shortcut (link)
  1392. Const SFGAO_SHARE            = $00020000;// shared
  1393. Const SFGAO_READONLY         = $00040000;// Read-only
  1394. Const SFGAO_GHOSTED          = $00080000;// ghosted icon
  1395. Const SFGAO_HIDDEN           = $00080000;// hidden Object
  1396. Const SFGAO_DISPLAYATTRMASK  = $000F0000
  1397. Const SFGAO_FILESYSANCESTOR  = $10000000;// It contains file system folder
  1398. Const SFGAO_FOLDER           = $20000000;// It's a folder.
  1399. Const SFGAO_FILESYSTEM       = $40000000;// is a file system thing (file/folder/root)
  1400. Const SFGAO_HASSUBFOLDER     = $80000000;// Expandable in the map pane
  1401. Const SFGAO_CONTENTSMASK     = $80000000
  1402. Const SFGAO_VALIDATE         = $01000000;// invalidate cached information
  1403. Const SFGAO_REMOVABLE        = $02000000;// is this removeable media?
  1404. Const SFGAO_COMPRESSED       = $04000000;// Object is compressed (use alt Color)
  1405. Const SFGAO_BROWSABLE        = $08000000;// is in-place browsable
  1406. Const SFGAO_NONENUMERATED    = $00100000;// is a non-enumerated Object
  1407. Const SFGAO_NEWCONTENT       = $00200000;// should show bold in explorer tree
  1408. ;#end region
  1409.  
  1410. ;#region ListViewItemState
  1411. Const LVIS_FOCUSED            = $0001
  1412. Const LVIS_SELECTED           = $0002
  1413. Const LVIS_CUT                = $0004
  1414. Const LVIS_DROPHILITED        = $0008
  1415. Const LVIS_ACTIVATING         = $0020
  1416. Const LVIS_OVERLAYMASK        = $0F00
  1417. Const LVIS_STATEIMAGEMASK     = $F000
  1418. ;#end region
  1419.  
  1420. ;#region TreeViewItemInsertPosition
  1421. Const TVI_ROOT                = $FFFF0000
  1422. Const TVI_FIRST               = $FFFF0001
  1423. Const TVI_LAST                = $FFFF0002
  1424. Const TVI_SORT                = $FFFF0003
  1425. ;#end region
  1426.  
  1427. ;#region TreeViewNotifications
  1428. Const TVN_FIRST               =  -400
  1429. Const TVN_SELCHANGINGA        = (TVN_FIRST-1)
  1430. Const TVN_SELCHANGINGW        = (TVN_FIRST-50)
  1431. Const TVN_SELCHANGEDA         = (TVN_FIRST-2)
  1432. Const TVN_SELCHANGEDW         = (TVN_FIRST-51)
  1433. Const TVN_GETDISPINFOA        = (TVN_FIRST-3)
  1434. Const TVN_GETDISPINFOW        = (TVN_FIRST-52)
  1435. Const TVN_SETDISPINFOA        = (TVN_FIRST-4)
  1436. Const TVN_SETDISPINFOW        = (TVN_FIRST-53)
  1437. Const TVN_ITEMEXPANDINGA      = (TVN_FIRST-5)
  1438. Const TVN_ITEMEXPANDINGW      = (TVN_FIRST-54)
  1439. Const TVN_ITEMEXPANDEDA       = (TVN_FIRST-6)
  1440. Const TVN_ITEMEXPANDEDW       = (TVN_FIRST-55)
  1441. Const TVN_BEGINDRAGA          = (TVN_FIRST-7)
  1442. Const TVN_BEGINDRAGW          = (TVN_FIRST-56)
  1443. Const TVN_BEGINRDRAGA         = (TVN_FIRST-8)
  1444. Const TVN_BEGINRDRAGW         = (TVN_FIRST-57)
  1445. Const TVN_DELETEITEMA         = (TVN_FIRST-9)
  1446. Const TVN_DELETEITEMW         = (TVN_FIRST-58)
  1447. Const TVN_BEGINLABELEDITA     = (TVN_FIRST-10)
  1448. Const TVN_BEGINLABELEDITW     = (TVN_FIRST-59)
  1449. Const TVN_ENDLABELEDITA       = (TVN_FIRST-11)
  1450. Const TVN_ENDLABELEDITW       = (TVN_FIRST-60)
  1451. Const TVN_KEYDOWN             = (TVN_FIRST-12)
  1452. Const TVN_GETINFOTIPA         = (TVN_FIRST-13)
  1453. Const TVN_GETINFOTIPW         = (TVN_FIRST-14)
  1454. Const TVN_SINGLEEXPAND        = (TVN_FIRST-15)
  1455. ;#end region
  1456.  
  1457. ;#region TreeViewItemExpansion
  1458. Const TVE_COLLAPSE            = $0001
  1459. Const TVE_EXPAND              = $0002
  1460. Const TVE_TOGGLE              = $0003
  1461. Const TVE_EXPANDPARTIAL       = $4000
  1462. Const TVE_COLLAPSERESET       = $8000
  1463. ;#end region
  1464.  
  1465. ;#region WinErrors
  1466. Const NOERROR = $00000000
  1467. ;#end region
  1468.  
  1469. ;#region TreeViewHitTest
  1470. Const TVHT_NOWHERE           = $0001
  1471. Const TVHT_ONITEMICON        = $0002
  1472. Const TVHT_ONITEMLABEL       = $0004
  1473. Const TVHT_ONITEMINDENT      = $0008
  1474. Const TVHT_ONITEMBUTTON      = $0010
  1475. Const TVHT_ONITEMRIGHT       = $0020
  1476. Const TVHT_ONITEMSTATEICON   = $0040
  1477. Const TVHT_ABOVE             = $0100
  1478. Const TVHT_BELOW             = $0200
  1479. Const TVHT_TORIGHT           = $0400
  1480. Const TVHT_TOLEFT            = $0800
  1481. Const TVHT_ONITEM            = (TVHT_ONITEMICON Or TVHT_ONITEMLABEL Or TVHT_ONITEMSTATEICON)
  1482. ;#End Region
  1483.  
  1484. ;#Region TreeViewItemState
  1485. Const TVIS_SELECTED           = $0002
  1486. Const TVIS_CUT                = $0004
  1487. Const TVIS_DROPHILITED        = $0008
  1488. Const TVIS_BOLD               = $0010
  1489. Const TVIS_EXPANDED           = $0020
  1490. Const TVIS_EXPANDEDONCE       = $0040
  1491. Const TVIS_EXPANDPARTIAL      = $0080
  1492. Const TVIS_OVERLAYMASK        = $0F00
  1493. Const TVIS_STATEIMAGEMASK     = $F000
  1494. Const TVIS_USERMASK           = $F000
  1495. ;#End Region
  1496.  
  1497. ;#Region Windows System Objects
  1498. ;// Reserved IDs For system objects
  1499. Const OBJID_WINDOW        = $00000000
  1500. Const OBJID_SYSMENU       = $FFFFFFFF
  1501. Const OBJID_TITLEBAR      = $FFFFFFFE
  1502. Const OBJID_MENU          = $FFFFFFFD
  1503. Const OBJID_CLIENT        = $FFFFFFFC
  1504. Const OBJID_VSCROLL       = $FFFFFFFB
  1505. Const OBJID_HSCROLL       = $FFFFFFFA
  1506. Const OBJID_SIZEGRIP      = $FFFFFFF9
  1507. Const OBJID_CARET         = $FFFFFFF8
  1508. Const OBJID_CURSOR        = $FFFFFFF7
  1509. Const OBJID_ALERT         = $FFFFFFF6
  1510. Const OBJID_SOUND         = $FFFFFFF5
  1511. ;#End Region
  1512.  
  1513. ;#Region SystemState
  1514.  
  1515. Const STATE_SYSTEM_UNAVAILABLE        = $00000001 ;// Disabled
  1516. Const STATE_SYSTEM_SELECTED           = $00000002
  1517. Const STATE_SYSTEM_FOCUSED            = $00000004
  1518. Const STATE_SYSTEM_PRESSED            = $00000008
  1519. Const STATE_SYSTEM_CHECKED            = $00000010
  1520. Const STATE_SYSTEM_MIXED              = $00000020 ;// 3-state checkbox Or toolbar button
  1521. Const STATE_SYSTEM_READONLY           = $00000040
  1522. Const STATE_SYSTEM_HOTTRACKED         = $00000080
  1523. Const STATE_SYSTEM_DEFAULT            = $00000100
  1524. Const STATE_SYSTEM_EXPANDED           = $00000200
  1525. Const STATE_SYSTEM_COLLAPSED          = $00000400
  1526. Const STATE_SYSTEM_BUSY               = $00000800
  1527. Const STATE_SYSTEM_FLOATING           = $00001000 ;// Children "owned" Not "contained" by parent
  1528. Const STATE_SYSTEM_MARQUEED           = $00002000
  1529. Const STATE_SYSTEM_ANIMATED           = $00004000
  1530. Const STATE_SYSTEM_INVISIBLE          = $00008000
  1531. Const STATE_SYSTEM_OFFSCREEN          = $00010000
  1532. Const STATE_SYSTEM_SIZEABLE           = $00020000
  1533. Const STATE_SYSTEM_MOVEABLE           = $00040000
  1534. Const STATE_SYSTEM_SELFVOICING        = $00080000
  1535. Const STATE_SYSTEM_FOCUSABLE          = $00100000
  1536. Const STATE_SYSTEM_SELECTABLE         = $00200000
  1537. Const STATE_SYSTEM_LINKED             = $00400000
  1538. Const STATE_SYSTEM_TRAVERSED          = $00800000
  1539. Const STATE_SYSTEM_MULTISELECTABLE    = $01000000  ;// Supports multiple selection
  1540. Const STATE_SYSTEM_EXTSELECTABLE      = $02000000  ;// Supports extended selection
  1541. Const STATE_SYSTEM_ALERT_LOW          = $04000000  ;// This information is of low priority
  1542. Const STATE_SYSTEM_ALERT_MEDIUM       = $08000000  ;// This information is of medium priority
  1543. Const STATE_SYSTEM_ALERT_HIGH         = $10000000  ;// This information is of high priority
  1544. Const STATE_SYSTEM_VALID              = $1FFFFFFF
  1545. ;#End Region
  1546.  
  1547.  
  1548. ;#Region QueryContextMenuFlags
  1549. Const CMF_NORMAL              = $00000000
  1550. Const CMF_DEFAULTONLY         = $00000001
  1551. Const CMF_VERBSONLY           = $00000002
  1552. Const CMF_EXPLORE             = $00000004
  1553. Const CMF_NOVERBS             = $00000008
  1554. Const CMF_CANRENAME           = $00000010
  1555. Const CMF_NODEFAULT           = $00000020
  1556. Const CMF_INCLUDESTATIC       = $00000040
  1557. Const CMF_RESERVED            = $ffff0000
  1558. ;#End Region
  1559.  
  1560. ;#Region GetWindowLongFlags
  1561. Const GWL_WNDPROC         = (-4)
  1562. Const GWL_HINSTANCE       = (-6)
  1563. Const GWL_HWNDPARENT      = (-8)
  1564. Const GWL_STYLE           = (-16)
  1565. Const GWL_EXSTYLE         = (-20)
  1566. Const GWL_USERDATA        = (-21)
  1567. Const GWL_ID              = (-12)
  1568. ;#End Region


Comments :


Difference(Posted 1+ years ago)

 Great. For the next time you can't find something:http://www.google.com/search?q=WM_CONTEXTMENU+site:www.blitzbasic.comGives me <a href="codearcsc3e4.html?code=589" target="_blank">http://www.blitzbasic.com/codearcs/codearcs.php?code=589[/url]


jfk EO-11110(Posted 1+ years ago)

 Ok, thanks. although, of course you're right. I didn't open the BlitzPlus Gui section because I don't own Blitzplus. Anyway, I think we can live with this waste of a couple of Kilobytes.


 

SimplePortal 2.3.6 © 2008-2014, SimplePortal