PageRenderTime 42ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/sources/duim/win32/win32-definitions.dylan

https://github.com/housel/opendylan
Unknown | 813 lines | 773 code | 40 blank | 0 comment | 0 complexity | 50af0f360f87068f7a6ae0129512ec93 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. Module: Win32-duim
  2. Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
  3. All rights reserved.
  4. License: See License.txt in this distribution for details.
  5. Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
  6. define constant $FFFFFFFF :: <machine-word> =
  7. as(<machine-word>, -1); // #xFFFFFFFF
  8. define constant <U8> = limited(<integer>, min: 0, max: #xFF);
  9. define constant <U16> = limited(<integer>, min: 0, max: #xFFFF);
  10. define constant <S16> = limited(<integer>, min: -#x8000, max: #x7FFF);
  11. define constant <ambiguous-short> = // 16 bits, signed or unsigned
  12. limited(<integer>, min: -#x8000, max: #xFFFF);
  13. define constant <signed-long> =
  14. type-union(<integer>, <machine-word>);
  15. define constant <unsigned-long> =
  16. type-union(limited(<integer>, min: 0), <machine-word>);
  17. define constant <signed-int> = <signed-long>;
  18. define constant <unsigned-int> = <unsigned-long>;
  19. define constant <C-BYTE*> = <C-unsigned-char*>;
  20. define constant <LPARAM> = <C-both-long>;
  21. define constant <LRESULT> = <C-both-long>;
  22. define constant <WPARAM> = <C-both-unsigned-int>;
  23. define constant <UINT> = <C-both-unsigned-int>;
  24. define inline constant <USHORT> = <C-unsigned-short>;
  25. define inline constant <DWORD> = <C-both-unsigned-long>;
  26. define C-pointer-type <DWORD*> => <DWORD>;
  27. define C-pointer-type <DWORD**> => <DWORD*>;
  28. define constant <BOOL> = <C-Boolean>;
  29. define inline constant <C-BYTE> = <C-unsigned-char>;
  30. define inline constant <WORD> = <C-unsigned-short>;
  31. define inline constant <PBYTE> = <C-BYTE*>;
  32. define inline constant <LPBYTE> = <C-BYTE*>;
  33. define inline constant <LPINT> = <C-int*>;
  34. define C-pointer-type <LPWORD> => <WORD>;
  35. define inline constant <LPVOID> = <C-void*>;
  36. define inline constant <LPCVOID> = /* const */ <C-void*>;
  37. define inline constant <INT> = <C-int>;
  38. define inline constant <CHAR> = <C-character>;
  39. define inline constant <SHORT> = <C-short>;
  40. define inline constant <LONG> = <C-both-long>;
  41. define inline constant <PWCHAR> = <C-unicode-string>;
  42. define inline constant <LPWSTR> = <C-unicode-string>;
  43. define inline constant <LPSTR> = <C-string>;
  44. define inline constant <LPCSTR> = /* const */ <C-string>;
  45. define inline constant <PTCHAR> = <C-string>;
  46. define inline constant <LPTSTR> = <LPSTR>;
  47. define inline constant <LPCTSTR> = <LPCSTR>;
  48. define inline constant <ATOM> = <WORD>;
  49. define inline constant <HGLOBAL> = <HANDLE>;
  50. define inline constant <COLORREF> = <DWORD>;
  51. define C-pointer-type <LPCOLORREF> => <DWORD>;
  52. define C-subtype <WNDPROC> ( <C-function-pointer> ) end;
  53. define C-subtype <HIMAGELIST> ( <C-void*> ) end;
  54. define C-subtype <HTREEITEM> ( <C-void*> ) end;
  55. define constant <HKEY> = <HANDLE>;
  56. define C-pointer-type <PHKEY> => <HKEY>;
  57. // Null constants for some commonly used pointer types
  58. define constant $NULL-HWND :: <HWND> = null-pointer( <HWND> );
  59. define constant $NULL-RECT :: <LPRECT> = null-pointer( <LPRECT> );
  60. define constant $NULL-POINT :: <LPPOINT> = null-pointer( <LPPOINT> );
  61. define constant $NULL-VOID :: <C-void*> = null-pointer( <C-void*> );
  62. define constant $NULL-string :: <C-string> = null-pointer( <C-string> );
  63. define constant $NULL-HDC :: <HDC> = null-pointer(<HDC>);
  64. define constant $NULL-HMENU :: <HMENU> = null-pointer(<HMENU>);
  65. define constant $NULL-HINSTANCE :: <HINSTANCE> = null-pointer(<HINSTANCE>);
  66. define inline-only constant $MAX-PATH = 260;
  67. define generic LOWORD ( n :: <object> ) => value :: <U16>;
  68. define generic HIWORD ( n :: <object> ) => value :: <U16>;
  69. define inline method LOWORD ( n :: <integer> ) => value :: <U16>;
  70. logand(n,#xFFFF)
  71. end LOWORD;
  72. define inline method HIWORD ( n :: <integer> ) => value :: <U16>;
  73. logand( ash(n,-16), #xFFFF)
  74. end HIWORD;
  75. define inline method LOWORD ( n :: <machine-word> ) => value :: <U16>;
  76. as(<integer>, %logand(n, as(<machine-word>, #xFFFF)))
  77. end LOWORD;
  78. // Not inline because of Bug 2262.
  79. define method HIWORD ( n :: <machine-word> ) => value :: <U16>;
  80. as(<integer>, u%shift-right(n,16))
  81. end HIWORD;
  82. define method LOWORD ( n :: <double-integer> ) => value :: <U16>;
  83. LOWORD(%double-integer-low(n))
  84. end LOWORD;
  85. define method HIWORD ( n :: <double-integer> ) => value :: <U16>;
  86. HIWORD(%double-integer-low(n))
  87. end HIWORD;
  88. define sealed method MAKELONG ( wLow :: <ambiguous-short>,
  89. wHigh :: <ambiguous-short> )
  90. => value :: <unsigned-long>;
  91. let low :: <integer> = logand(wLow, #xFFFF);
  92. if ( wHigh > #x0FFF | wHigh < 0 )
  93. %logior(low, u%shift-left(as(<machine-word>, logand(wHigh, #xFFFF)), 16))
  94. else
  95. logior(low, ash(wHigh,16))
  96. end if
  97. end MAKELONG;
  98. define sealed method MAKELONG ( wLow :: <boolean>, wHigh :: <object> )
  99. => value :: <unsigned-long>;
  100. MAKELONG( (if(wLow) 1 else 0 end if), wHigh)
  101. end MAKELONG;
  102. // The following is a substitute for MAKEPOINT, MAKEPOINTS, and LONG2POINT.
  103. // Unpacks a 32-bit value into two signed 16-bit numbers
  104. define function LPARAM-TO-XY( lparam ) => ( x :: <S16> , y :: <S16> );
  105. local method extend-short( u :: <U16> ) => s :: <S16>;
  106. // sign-extend a 16-bit number
  107. if ( logand( u, #x8000 ) = 0 )
  108. u
  109. else
  110. logior( u, lognot(#x7FFF) );
  111. end if;
  112. end extend-short;
  113. values( extend-short(LOWORD(lparam)), extend-short(HIWORD(lparam)) )
  114. end LPARAM-TO-XY;
  115. define inline method LOBYTE ( n :: <integer> ) => value :: <U8>;
  116. logand(n,#xFF)
  117. end LOBYTE;
  118. define inline method HIBYTE ( n :: <integer> ) => value :: <U8>;
  119. logand(ash(n,-8), #xFF)
  120. end HIBYTE;
  121. define method LOBYTE ( n :: <machine-word> ) => value :: <U8>;
  122. LOBYTE(LOWORD(n))
  123. end LOBYTE;
  124. define method HIBYTE ( n :: <machine-word> ) => value :: <U8>;
  125. HIBYTE(LOWORD(n))
  126. end HIBYTE;
  127. define sealed method MAKEWORD ( low-byte :: <integer>, high-byte :: <integer> )
  128. => value :: <U16>;
  129. logior(logand(low-byte, #xFF), ash(logand(high-byte, #xFF),8))
  130. end MAKEWORD;
  131. define inline function MAKELANGID(p :: <U16>, s :: <U16>)
  132. => (value :: <integer>);
  133. logior( ash(s, 10), p)
  134. end MAKELANGID;
  135. define function MAKEINTRESOURCE( n :: <integer> )
  136. => value :: <LPTSTR>;
  137. make(<LPTSTR>, address: n)
  138. end MAKEINTRESOURCE;
  139. define inline function RGB(red :: <U8>, green :: <U8>, blue :: <U8> )
  140. => value :: <integer>;
  141. logior ( logior(red, ash(green,8)), ash(blue,16) )
  142. end RGB;
  143. define inline function GetRValue(rgb :: <integer>) => red :: <U8>;
  144. logand(#xFF,rgb)
  145. end;
  146. define inline function GetGValue(rgb :: <integer>) => green :: <U8>;
  147. logand(#xFF, ash(rgb,-8))
  148. end;
  149. define inline function GetBValue(rgb :: <integer>) => blue :: <U8>;
  150. logand(#xFF, ash(rgb,-16))
  151. end;
  152. define inline function MAKELPARAM(l, h); MAKELONG(l, h) end;
  153. define inline-only constant $ACTCTX-FLAG-RESOURCE-NAME-VALID = #x00000008;
  154. define inline-only constant $ACTCTX-FLAG-HMODULE-VALID = #x00000080;
  155. define inline-only constant $ANSI-CHARSET = 0;
  156. define inline-only constant $ANSI-FIXED-FONT = 11;
  157. define inline-only constant $ANSI-VAR-FONT = 12;
  158. define inline-only constant $BDR-RAISEDINNER = #x0004;
  159. define inline-only constant $BDR-RAISEDOUTER = #x0001;
  160. define inline-only constant $BDR-SUNKENINNER = #x0008;
  161. define inline-only constant $BDR-SUNKENOUTER = #x0002;
  162. define inline-only constant $BF-BOTTOM = #x0008;
  163. define inline-only constant $BF-FLAT = #x4000;
  164. define inline-only constant $BF-LEFT = #x0001;
  165. define inline-only constant $BF-RECT = logior($BF-LEFT, $BF-TOP, $BF-RIGHT, $BF-BOTTOM);
  166. define inline-only constant $BF-RIGHT = #x0004;
  167. define inline-only constant $BF-TOP = #x0002;
  168. define inline-only constant $BLACK-BRUSH = 4;
  169. define inline-only constant $BLACK-PEN = 7;
  170. define inline-only constant $BLACKNESS = #x00000042;
  171. define inline-only constant $BM-GETCHECK = #x00F0;
  172. define inline-only constant $BM-SETCHECK = #x00F1;
  173. define inline-only constant $BM-SETIMAGE = #x00F7;
  174. define inline-only constant $BM-SETSTYLE = #x00F4;
  175. define inline-only constant $BN-CLICKED = 0;
  176. define inline-only constant $BN-DBLCLK = $BN-DOUBLECLICKED;
  177. define inline-only constant $BN-DOUBLECLICKED = 5;
  178. define inline-only constant $BS-BITMAP = #x00000080;
  179. define inline-only constant $BS-CHECKBOX = #x00000002;
  180. define inline-only constant $BS-DEFPUSHBUTTON = #x00000001;
  181. define inline-only constant $BS-GROUPBOX = #x00000007;
  182. define inline-only constant $BS-ICON = #x00000040;
  183. define inline-only constant $BS-PUSHBUTTON = #x00000000;
  184. define inline-only constant $BS-PUSHLIKE = #x00001000;
  185. define inline-only constant $BS-RADIOBUTTON = #x00000004;
  186. define inline-only constant $BST-CHECKED = #x0001;
  187. define inline-only constant $CB-ADDSTRING = #x0143;
  188. define inline-only constant $CB-ERR = -1;
  189. define inline-only constant $CB-GETCURSEL = #x0147;
  190. define inline-only constant $CB-GETDROPPEDSTATE = #x0157;
  191. define inline-only constant $CB-RESETCONTENT = #x014B;
  192. define inline-only constant $CB-SETCURSEL = #x014E;
  193. define inline-only constant $CB-SHOWDROPDOWN = #x014F;
  194. define inline-only constant $CBN-EDITCHANGE = 5;
  195. define inline-only constant $CBN-SELENDOK = 9;
  196. define inline-only constant $CBS-AUTOHSCROLL = #x0040;
  197. define inline-only constant $CBS-DROPDOWN = #x0002;
  198. define inline-only constant $CBS-DROPDOWNLIST = #x0003;
  199. define inline-only constant $CC-ANYCOLOR = #x00000100;
  200. define inline-only constant $CC-RGBINIT = #x00000001;
  201. define inline-only constant $CC-SHOWHELP = #x00000008;
  202. define inline-only constant $CCHDEVICENAME = 32;
  203. define inline-only constant $CCHFORMNAME = 32;
  204. define inline-only constant $CF-APPLY = #x00000200;
  205. define inline-only constant $CF-EFFECTS = #x00000100;
  206. define inline-only constant $CF-FIXEDPITCHONLY = #x00004000;
  207. define inline-only constant $CF-FORCEFONTEXIST = #x00010000;
  208. define inline-only constant $CF-INITTOLOGFONTSTRUCT = #x00000040;
  209. define inline-only constant $CF-NOSCRIPTSEL = #x00800000;
  210. define inline-only constant $CF-SCREENFONTS = #x00000001;
  211. define inline-only constant $CF-SHOWHELP = #x00000004;
  212. define inline-only constant $CF-TEXT = 1;
  213. define inline-only constant $CLIP-DEFAULT-PRECIS = 0;
  214. define inline-only constant $CLR-INVALID = $FFFFFFFF;
  215. define inline-only constant $COLOR-3DFACE = $COLOR-BTNFACE;
  216. define inline-only constant $COLOR-3DHIGHLIGHT = $COLOR-BTNHIGHLIGHT;
  217. define inline-only constant $COLOR-3DSHADOW = $COLOR-BTNSHADOW;
  218. define inline-only constant $COLOR-BTNFACE = 15;
  219. define inline-only constant $COLOR-BTNHIGHLIGHT = 20;
  220. define inline-only constant $COLOR-BTNSHADOW = 16;
  221. define inline-only constant $COLOR-WINDOW = 5;
  222. define inline-only constant $COLOR-WINDOWTEXT = 8;
  223. define inline-only constant $CS-DBLCLKS = #x0008;
  224. define inline-only constant $CS-HREDRAW = #x0002;
  225. define inline-only constant $CS-OWNDC = #x0020;
  226. define inline-only constant $CS-VREDRAW = #x0001;
  227. define inline-only constant $CW-USEDEFAULT = as(<machine-word>, #x80000000);
  228. define inline-only constant $DEFAULT-CHARSET = 1;
  229. define inline-only constant $DEFAULT-GUI-FONT = 17;
  230. define inline-only constant $DEFAULT-PITCH = 0;
  231. define inline-only constant $DEFAULT-QUALITY = 0;
  232. define inline-only constant $DI-COMPAT = #x0004;
  233. define inline-only constant $DLGWINDOWEXTRA = 30;
  234. define inline-only constant $DSTINVERT = #x00550009;
  235. define inline-only constant $DS-SETFONT = #x40;
  236. define inline-only constant $EDGE-BUMP = logior($BDR-RAISEDOUTER, $BDR-SUNKENINNER);
  237. define inline-only constant $EDGE-ETCHED = logior($BDR-SUNKENOUTER, $BDR-RAISEDINNER);
  238. define inline-only constant $EDGE-RAISED = logior($BDR-RAISEDOUTER, $BDR-RAISEDINNER);
  239. define inline-only constant $EDGE-SUNKEN = logior($BDR-SUNKENOUTER, $BDR-SUNKENINNER);
  240. define inline-only constant $EM-GETSEL = #x00B0;
  241. define inline-only constant $EM-SCROLLCARET = #x00B7;
  242. define inline-only constant $EM-SETSEL = #x00B1;
  243. define inline-only constant $EN-CHANGE = #x0300;
  244. define inline-only constant $EN-KILLFOCUS = #x0200;
  245. define inline-only constant $ERROR-SUCCESS = 0;
  246. define inline-only constant $ES-AUTOHSCROLL = #x0080;
  247. define inline-only constant $ES-MULTILINE = #x0004;
  248. define inline-only constant $ES-PASSWORD = #x0020;
  249. define inline-only constant $ES-READONLY = #x0800;
  250. define inline-only constant $ES-WANTRETURN = #x1000;
  251. define inline-only constant $FF-DECORATIVE = ash(5,4);
  252. define inline-only constant $FF-DONTCARE = ash(0,4);
  253. define inline-only constant $FF-MODERN = ash(3,4);
  254. define inline-only constant $FF-ROMAN = ash(1,4);
  255. define inline-only constant $FF-SCRIPT = ash(4,4);
  256. define inline-only constant $FF-SWISS = ash(2,4);
  257. define inline-only constant $FIXED-PITCH = 1;
  258. define inline-only constant $FORMAT-MESSAGE-FROM-SYSTEM = #x00001000;
  259. define inline-only constant $FORMAT-MESSAGE-IGNORE-INSERTS = #x00000200;
  260. define inline-only constant $GCW-ATOM = -32;
  261. define inline-only constant $GMEM-DDESHARE = #x2000;
  262. define inline-only constant $GMEM-MOVEABLE = #x0002;
  263. define inline-only constant $GW-CHILD = 5;
  264. define inline-only constant $GW-HWNDNEXT = 2;
  265. define inline-only constant $GWL-STYLE = -16;
  266. define inline-only constant $GWL-WNDPROC = -4;
  267. define inline-only constant $HELP-COMMAND = #x0102;
  268. define inline-only constant $HELP-CONTENTS = #x0003;
  269. define inline-only constant $HELP-CONTEXT = #x0001;
  270. define inline-only constant $HELP-CONTEXTPOPUP = #x0008;
  271. define inline-only constant $HELP-FINDER = #x000b;
  272. define inline-only constant $HELP-HELPONHELP = #x0004;
  273. define inline-only constant $HELP-INDEX = #x0003;
  274. define inline-only constant $HELP-KEY = #x0101;
  275. define inline-only constant $HELP-QUIT = #x0002;
  276. define inline-only constant $HELP-SETWINPOS = #x0203;
  277. define inline-only constant $HH-ALINK-LOOKUP = #x0013;
  278. define inline-only constant $HH-DISPLAY-TOPIC = #x0000;
  279. define inline-only constant $HH-HELP-CONTEXT = #x000F;
  280. define inline-only constant $HKEY-CLASSES-ROOT = as(<HKEY>,as(<machine-word>, #x80000000));
  281. define inline-only constant $HORZSIZE = 4;
  282. define inline-only constant $HWND-BOTTOM = make(<HWND>, address: 1);
  283. define inline-only constant $HWND-TOP = make(<HWND>, address: 0);
  284. define inline-only constant $ICON-BIG = 1;
  285. define inline-only constant $ICON-SMALL = 0;
  286. define inline-only constant $IDC-APPSTARTING = MAKEINTRESOURCE(32650);
  287. define inline-only constant $IDC-ARROW = MAKEINTRESOURCE(32512);
  288. define inline-only constant $IDC-CROSS = MAKEINTRESOURCE(32515);
  289. define inline-only constant $IDC-IBEAM = MAKEINTRESOURCE(32513);
  290. define inline-only constant $IDC-SIZENESW = MAKEINTRESOURCE(32643);
  291. define inline-only constant $IDC-SIZENS = MAKEINTRESOURCE(32645);
  292. define inline-only constant $IDC-SIZENWSE = MAKEINTRESOURCE(32642);
  293. define inline-only constant $IDC-SIZEWE = MAKEINTRESOURCE(32644);
  294. define inline-only constant $IDC-WAIT = MAKEINTRESOURCE(32514);
  295. define inline-only constant $IDCANCEL = 2;
  296. define inline-only constant $IDHELP = 9;
  297. define inline-only constant $IDI-APPLICATION = MAKEINTRESOURCE(32512);
  298. define inline-only constant $IDNO = 7;
  299. define inline-only constant $IDOK = 1;
  300. define inline-only constant $IDYES = 6;
  301. define inline-only constant $ILC-COLOR8 = #x0008;
  302. define inline-only constant $ILC-MASK = #x0001;
  303. define inline-only constant $IMAGE-BITMAP = 0;
  304. define inline-only constant $IMAGE-ICON = 1;
  305. define inline-only constant $KEY-ENUMERATE-SUB-KEYS = #x0008;
  306. define inline-only constant $KEY-QUERY-VALUE = #x0001;
  307. define inline-only constant $LANG-NEUTRAL = #x00;
  308. define inline-only constant $LANG-USER-DEFAULT = MAKELANGID($LANG-NEUTRAL,$SUBLANG-DEFAULT);
  309. define inline-only constant $LB-ADDSTRING = #x0180;
  310. define inline-only constant $LB-ERR = -1;
  311. define inline-only constant $LB-GETCURSEL = #x0188;
  312. define inline-only constant $LB-GETSELITEMS = #x0191;
  313. define inline-only constant $LB-RESETCONTENT = #x0184;
  314. define inline-only constant $LB-SETCURSEL = #x0186;
  315. define inline-only constant $LB-SETSEL = #x0185;
  316. define inline-only constant $LBN-DBLCLK = 2;
  317. define inline-only constant $LBN-SELCANCEL = 3;
  318. define inline-only constant $LBN-SELCHANGE = 1;
  319. define inline-only constant $LBS-DISABLENOSCROLL = #x1000;
  320. define inline-only constant $LBS-EXTENDEDSEL = #x0800;
  321. define inline-only constant $LBS-NOTIFY = #x0001;
  322. define inline-only constant $LF-FACESIZE = 32;
  323. define inline-only constant $LOGPIXELSX = 88;
  324. define inline-only constant $LOGPIXELSY = 90;
  325. define inline-only constant $LR-DEFAULTCOLOR = #x0000;
  326. define inline-only constant $LVCF-FMT = #x0001;
  327. define inline-only constant $LVCF-SUBITEM = #x0008;
  328. define inline-only constant $LVCF-TEXT = #x0004;
  329. define inline-only constant $LVCF-WIDTH = #x0002;
  330. define inline-only constant $LVCFMT-CENTER = #x0002;
  331. define inline-only constant $LVCFMT-LEFT = #x0000;
  332. define inline-only constant $LVCFMT-RIGHT = #x0001;
  333. define inline-only constant $LVHT-ONITEM = logior($LVHT-ONITEMICON, $LVHT-ONITEMLABEL, $LVHT-ONITEMSTATEICON);
  334. define inline-only constant $LVHT-ONITEMICON = #x0002;
  335. define inline-only constant $LVHT-ONITEMLABEL = #x0004;
  336. define inline-only constant $LVHT-ONITEMSTATEICON = #x0008;
  337. define inline-only constant $LVIF-IMAGE = #x0002;
  338. define inline-only constant $LVIF-STATE = #x0008;
  339. define inline-only constant $LVIF-TEXT = #x0001;
  340. define inline-only constant $LVIS-SELECTED = #x0002;
  341. define inline-only constant $LVM-DELETEALLITEMS = #x1009;
  342. define inline-only constant $LVM-DELETECOLUMN = #x101C;
  343. define inline-only constant $LVM-DELETEITEM = #x1008;
  344. define inline-only constant $LVM-ENSUREVISIBLE = #x1013;
  345. define inline-only constant $LVM-HITTEST = #x1012;
  346. define inline-only constant $LVM-INSERTCOLUMN = #x101B;
  347. define inline-only constant $LVM-INSERTITEM = #x1007;
  348. define inline-only constant $LVM-SETCOLUMN = #x101A;
  349. define inline-only constant $LVM-SETCOLUMNWIDTH = #x101E;
  350. define inline-only constant $LVM-SETIMAGELIST = #x1003;
  351. define inline-only constant $LVM-SETITEM = #x1006;
  352. define inline-only constant $LVM-SETITEMCOUNT = #x102F;
  353. define inline-only constant $LVM-SETEXTENDEDLISTVIEWSTYLE = #x1036;
  354. define inline-only constant $LVN-COLUMNCLICK = -108;
  355. define inline-only constant $LVN-ITEMCHANGED = -101;
  356. define inline-only constant $LVN-KEYDOWN = -155;
  357. define inline-only constant $LVS-ICON = #x0000;
  358. define inline-only constant $LVS-LIST = #x0003;
  359. define inline-only constant $LVS-NOCOLUMNHEADER = #x4000;
  360. define inline-only constant $LVS-REPORT = #x0001;
  361. define inline-only constant $LVS-EX-FULLROWSELECT = #x00000020;
  362. define inline-only constant $LVS-SHOWSELALWAYS = #x0008;
  363. define inline-only constant $LVS-SINGLESEL = #x0004;
  364. define inline-only constant $LVS-SMALLICON = #x0002;
  365. define inline-only constant $LVS-TYPEMASK = #x0003;
  366. define inline-only constant $LVSCW-AUTOSIZE = -1;
  367. define inline-only constant $LVSIL-NORMAL = 0;
  368. define inline-only constant $LVSIL-SMALL = 1;
  369. define inline-only constant $MB-APPLMODAL = #x00000000;
  370. define inline-only constant $MB-ICONASTERISK = #x00000040;
  371. define inline-only constant $MB-ICONERROR = $MB-ICONHAND;
  372. define inline-only constant $MB-ICONEXCLAMATION = #x00000030;
  373. define inline-only constant $MB-ICONHAND = #x00000010;
  374. define inline-only constant $MB-ICONINFORMATION = $MB-ICONASTERISK;
  375. define inline-only constant $MB-ICONQUESTION = #x00000020;
  376. define inline-only constant $MB-ICONSTOP = $MB-ICONHAND;
  377. define inline-only constant $MB-ICONWARNING = $MB-ICONEXCLAMATION;
  378. define inline-only constant $MB-OK = #x00000000;
  379. define inline-only constant $MB-OKCANCEL = #x00000001;
  380. define inline-only constant $MB-SETFOREGROUND = #x00010000;
  381. define inline-only constant $MB-SYSTEMMODAL = #x00001000;
  382. define inline-only constant $MB-TASKMODAL = #x00002000;
  383. define inline-only constant $MB-YESNO = #x00000004;
  384. define inline-only constant $MB-YESNOCANCEL = #x00000003;
  385. define inline-only constant $MERGEPAINT = #x00BB0226;
  386. define inline-only constant $MF-BYCOMMAND = #x00000000;
  387. define inline-only constant $MF-BYPOSITION = #x00000400;
  388. define inline-only constant $MF-CHECKED = #x00000008;
  389. define inline-only constant $MF-DEFAULT = #x00001000;
  390. define inline-only constant $MF-ENABLED = #x00000000;
  391. define inline-only constant $MF-GRAYED = #x00000001;
  392. define inline-only constant $MF-POPUP = #x00000010;
  393. define inline-only constant $MF-SEPARATOR = #x00000800;
  394. define inline-only constant $MF-STRING = #x00000000;
  395. define inline-only constant $MF-UNCHECKED = #x00000000;
  396. define inline-only constant $MFS-CHECKED = $MF-CHECKED;
  397. define inline-only constant $MFS-DEFAULT = $MF-DEFAULT;
  398. define inline-only constant $MFS-DISABLED = $MFS-GRAYED;
  399. define inline-only constant $MFS-ENABLED = $MF-ENABLED;
  400. define inline-only constant $MFS-GRAYED = #x00000003;
  401. define inline-only constant $MFT-RADIOCHECK = #x00000200;
  402. define inline-only constant $MFT-STRING = $MF-STRING;
  403. define inline-only constant $MIIM-DATA = #x00000020;
  404. define inline-only constant $MIIM-ID = #x00000002;
  405. define inline-only constant $MIIM-STATE = #x00000001;
  406. define inline-only constant $MIIM-TYPE = #x00000010;
  407. define inline-only constant $MK-CONTROL = #x0008;
  408. define inline-only constant $MK-LBUTTON = #x0001;
  409. define inline-only constant $MK-MBUTTON = #x0010;
  410. define inline-only constant $MK-RBUTTON = #x0002;
  411. define inline-only constant $MK-SHIFT = #x0004;
  412. define inline-only constant $NM-DBLCLK = -3;
  413. define inline-only constant $NM-RCLICK = -5;
  414. define inline-only constant $NOTSRCCOPY = #x00330008;
  415. define inline-only constant $NOTSRCERASE = #x001100A6;
  416. define inline-only constant $NULL-BRUSH = 5;
  417. define inline-only constant $NULL-PEN = 8;
  418. define inline-only constant $OEM-CHARSET = 255;
  419. define inline-only constant $OFN-ALLOWMULTISELECT = #x00000200;
  420. define inline-only constant $OFN-EXPLORER = #x00080000;
  421. define inline-only constant $OFN-FILEMUSTEXIST = #x00001000;
  422. define inline-only constant $OFN-HIDEREADONLY = #x00000004;
  423. define inline-only constant $OFN-OVERWRITEPROMPT = #x00000002;
  424. define inline-only constant $OUT-TT-PRECIS = 4;
  425. define inline-only constant $PBM-SETPOS = #x402;
  426. define inline-only constant $PBM-SETRANGE = #x401;
  427. define inline-only constant $PD-ALLPAGES = #x00000000;
  428. define inline-only constant $PD-COLLATE = #x00000010;
  429. define inline-only constant $PD-PRINTSETUP = #x00000040;
  430. define inline-only constant $PD-PRINTTOFILE = #x00000020;
  431. define inline-only constant $PD-SHOWHELP = #x00000800;
  432. define inline-only constant $PD-USEDEVMODECOPIES = #x00040000;
  433. define inline-only constant $PS-DASH = 1;
  434. define inline-only constant $PS-DASHDOT = 3;
  435. define inline-only constant $PS-DASHDOTDOT = 4;
  436. define inline-only constant $PS-DOT = 2;
  437. define inline-only constant $PS-SOLID = 0;
  438. define inline-only constant $R2-BLACK = 1;
  439. define inline-only constant $R2-COPYPEN = 13;
  440. define inline-only constant $R2-MASKNOTPEN = 3;
  441. define inline-only constant $R2-MASKPEN = 9;
  442. define inline-only constant $R2-MASKPENNOT = 5;
  443. define inline-only constant $R2-MERGENOTPEN = 12;
  444. define inline-only constant $R2-MERGEPEN = 15;
  445. define inline-only constant $R2-MERGEPENNOT = 14;
  446. define inline-only constant $R2-NOP = 11;
  447. define inline-only constant $R2-NOT = 6;
  448. define inline-only constant $R2-NOTCOPYPEN = 4;
  449. define inline-only constant $R2-NOTMASKPEN = 8;
  450. define inline-only constant $R2-NOTMERGEPEN = 2;
  451. define inline-only constant $R2-NOTXORPEN = 10;
  452. define inline-only constant $R2-WHITE = 16;
  453. define inline-only constant $R2-XORPEN = 7;
  454. define inline-only constant $RGN-AND = 1;
  455. define inline-only constant $RGN-COPY = 5;
  456. define inline-only constant $RGN-DIFF = 4;
  457. define inline-only constant $RGN-OR = 2;
  458. define inline-only constant $RGN-XOR = 3;
  459. define inline-only constant $RT-BITMAP = MAKEINTRESOURCE(2);
  460. define inline-only constant $RT-CURSOR = MAKEINTRESOURCE(1);
  461. define inline-only constant $RT-DIALOG = MAKEINTRESOURCE(5);
  462. define inline-only constant $RT-ICON = MAKEINTRESOURCE(3);
  463. define inline-only constant $SB-BOTTOM = 7;
  464. define inline-only constant $SB-CTL = 2;
  465. define inline-only constant $SB-ENDSCROLL = 8;
  466. define inline-only constant $SB-LINEDOWN = 1;
  467. define inline-only constant $SB-LINEUP = 0;
  468. define inline-only constant $SB-PAGEDOWN = 3;
  469. define inline-only constant $SB-PAGEUP = 2;
  470. define inline-only constant $SB-SETMINHEIGHT = #x408;
  471. define inline-only constant $SB-SETPARTS = #x404;
  472. define inline-only constant $SB-SETTEXT = #x401;
  473. define inline-only constant $SB-THUMBPOSITION = 4;
  474. define inline-only constant $SB-THUMBTRACK = 5;
  475. define inline-only constant $SB-TOP = 6;
  476. define inline-only constant $SBARS-SIZEGRIP = #x0100;
  477. define inline-only constant $SBS-HORZ = #x0000;
  478. define inline-only constant $SBS-VERT = #x0001;
  479. define inline-only constant $SBT-NOBORDERS = #x0100;
  480. define inline-only constant $SIF-ALL = logior($SIF-RANGE, $SIF-PAGE, $SIF-POS, $SIF-TRACKPOS);
  481. define inline-only constant $SIF-PAGE = #x0002;
  482. define inline-only constant $SIF-POS = #x0004;
  483. define inline-only constant $SIF-RANGE = #x0001;
  484. define inline-only constant $SIF-TRACKPOS = #x0010;
  485. define inline-only constant $SIZE-MAXIMIZED = 2;
  486. define inline-only constant $SIZE-MINIMIZED = 1;
  487. define inline-only constant $SIZE-RESTORED = 0;
  488. define inline-only constant $SM-CMOUSEBUTTONS = 43;
  489. define inline-only constant $SM-CXFULLSCREEN = 16;
  490. define inline-only constant $SM-CXHSCROLL = 21;
  491. define inline-only constant $SM-CXICON = 11;
  492. define inline-only constant $SM-CXSCREEN = 0;
  493. define inline-only constant $SM-CXSMICON = 49;
  494. define inline-only constant $SM-CXVSCROLL = 2;
  495. define inline-only constant $SM-CYFULLSCREEN = 17;
  496. define inline-only constant $SM-CYHSCROLL = 3;
  497. define inline-only constant $SM-CYICON = 12;
  498. define inline-only constant $SM-CYMENU = 15;
  499. define inline-only constant $SM-CYSCREEN = 1;
  500. define inline-only constant $SM-CYSMICON = 50;
  501. define inline-only constant $SM-CYVSCROLL = 20;
  502. define inline-only constant $SRCAND = #x008800C6;
  503. define inline-only constant $SRCCOPY = #x00CC0020;
  504. define inline-only constant $SRCERASE = #x00440328;
  505. define inline-only constant $SRCINVERT = #x00660046;
  506. define inline-only constant $SRCPAINT = #x00EE0086;
  507. define inline-only constant $SS-BITMAP = #x0000000E;
  508. define inline-only constant $SS-ICON = #x00000003;
  509. define inline-only constant $SS-LEFTNOWORDWRAP = #x0000000C;
  510. define inline-only constant $STARTF-USESHOWWINDOW = #x00000001;
  511. define inline-only constant $STM-SETIMAGE = #x0172;
  512. define inline-only constant $SUBLANG-DEFAULT = #x01;
  513. define inline-only constant $SW-HIDE = 0;
  514. define inline-only constant $SW-MAXIMIZE = 3;
  515. define inline-only constant $SW-MINIMIZE = 6;
  516. define inline-only constant $SW-RESTORE = 9;
  517. define inline-only constant $SW-SHOW = 5;
  518. define inline-only constant $SW-SHOWNORMAL = 1;
  519. define inline-only constant $SWP-NOACTIVATE = #x0010;
  520. define inline-only constant $SWP-NOMOVE = #x0002;
  521. define inline-only constant $SWP-NOSIZE = #x0001;
  522. define inline-only constant $SWP-NOZORDER = #x0004;
  523. define inline-only constant $SYMBOL-CHARSET = 2;
  524. define inline-only constant $SYSTEM-FONT = 13;
  525. define inline-only constant $TA-BASELINE = 24;
  526. define inline-only constant $TA-BOTTOM = 8;
  527. define inline-only constant $TA-CENTER = 6;
  528. define inline-only constant $TA-LEFT = 0;
  529. define inline-only constant $TA-RIGHT = 2;
  530. define inline-only constant $TA-TOP = 0;
  531. define inline-only constant $TB-BOTTOM = 7;
  532. define inline-only constant $TB-LINEDOWN = 1;
  533. define inline-only constant $TB-LINEUP = 0;
  534. define inline-only constant $TB-PAGEDOWN = 3;
  535. define inline-only constant $TB-PAGEUP = 2;
  536. define inline-only constant $TB-THUMBPOSITION = 4;
  537. define inline-only constant $TB-THUMBTRACK = 5;
  538. define inline-only constant $TB-TOP = 6;
  539. define inline-only constant $TBM-SETPOS = #x405;
  540. define inline-only constant $TBM-SETRANGE = #x406;
  541. define inline-only constant $TBM-SETTICFREQ = #x414;
  542. define inline-only constant $TBS-AUTOTICKS = #x0001;
  543. define inline-only constant $TBS-HORZ = #x0000;
  544. define inline-only constant $TBS-VERT = #x0002;
  545. define inline-only constant $TCIF-TEXT = #x0001;
  546. define inline-only constant $TCM-ADJUSTRECT = #x1328;
  547. define inline-only constant $TCM-DELETEALLITEMS = #x1309;
  548. define inline-only constant $TCM-GETCURSEL = #x130B;
  549. define inline-only constant $TCM-GETITEMRECT = #x130A;
  550. define inline-only constant $TCM-INSERTITEM = #x1307;
  551. define inline-only constant $TCM-SETCURSEL = #x130C;
  552. define inline-only constant $TCN-KEYDOWN = -550;
  553. define inline-only constant $TCN-SELCHANGE = -551;
  554. define inline-only constant $TPM-BOTTOMALIGN = #x0020;
  555. define inline-only constant $TPM-CENTERALIGN = #x0004;
  556. define inline-only constant $TPM-LEFTALIGN = #x0000;
  557. define inline-only constant $TPM-NONOTIFY = #x0080;
  558. define inline-only constant $TPM-RETURNCMD = #x0100;
  559. define inline-only constant $TPM-RIGHTALIGN = #x0008;
  560. define inline-only constant $TPM-RIGHTBUTTON = #x0002;
  561. define inline-only constant $TPM-TOPALIGN = #x0000;
  562. define inline-only constant $TPM-VCENTERALIGN = #x0010;
  563. define inline-only constant $TRANSPARENT = 1;
  564. define inline-only constant $TTF-IDISHWND = #x0001;
  565. define inline-only constant $TTF-SUBCLASS = #x0010;
  566. define inline-only constant $TTM-ACTIVATE = #x401;
  567. define inline-only constant $TTM-ADDTOOL = #x404;
  568. define inline-only constant $TTM-DELTOOL = #x405;
  569. define inline-only constant $TTN-GETDISPINFO = -520;
  570. define inline-only constant $TTN-NEEDTEXT = $TTN-GETDISPINFO;
  571. define inline-only constant $TTS-ALWAYSTIP = #x01;
  572. define inline-only constant $TTS-NOPREFIX = #x02;
  573. define inline-only constant $TVE-COLLAPSE = #x0001;
  574. define inline-only constant $TVE-COLLAPSERESET = #x8000;
  575. define inline-only constant $TVE-EXPAND = #x0002;
  576. define inline-only constant $TVE-TOGGLE = #x0003;
  577. define inline-only constant $TVGN-CARET = #x0009;
  578. define inline-only constant $TVHT-ONITEM = logior($TVHT-ONITEMICON, $TVHT-ONITEMLABEL, $TVHT-ONITEMSTATEICON);
  579. define inline-only constant $TVHT-ONITEMBUTTON = #x0010;
  580. define inline-only constant $TVHT-ONITEMICON = #x0002;
  581. define inline-only constant $TVHT-ONITEMLABEL = #x0004;
  582. define inline-only constant $TVHT-ONITEMSTATEICON = #x0040;
  583. define inline-only constant $TVI-LAST = make(<HTREEITEM>, address: as(<machine-word>, #xFFFF0002));
  584. define inline-only constant $TVI-ROOT = make(<HTREEITEM>, address: as(<machine-word>, #xFFFF0000));
  585. define inline-only constant $TVIF-CHILDREN = #x0040;
  586. define inline-only constant $TVIF-IMAGE = #x0002;
  587. define inline-only constant $TVIF-SELECTEDIMAGE = #x0020;
  588. define inline-only constant $TVIF-STATE = #x0008;
  589. define inline-only constant $TVIF-TEXT = #x0001;
  590. define inline-only constant $TVIS-SELECTED = #x0002;
  591. define inline-only constant $TVM-DELETEITEM = #x1101;
  592. define inline-only constant $TVM-ENSUREVISIBLE = #x1114;
  593. define inline-only constant $TVM-EXPAND = #x1102;
  594. define inline-only constant $TVM-HITTEST = #x1111;
  595. define inline-only constant $TVM-INSERTITEM = #x1100;
  596. define inline-only constant $TVM-SELECTITEM = #x110B;
  597. define inline-only constant $TVM-SETIMAGELIST = #x1109;
  598. define inline-only constant $TVM-SETITEM = #x110D;
  599. define inline-only constant $TVN-GETDISPINFO = -403;
  600. define inline-only constant $TVN-ITEMEXPANDINGA = -405;
  601. define inline-only constant $TVN-ITEMEXPANDINGW = -454;
  602. define inline-only constant $TVN-KEYDOWN = -412;
  603. define inline-only constant $TVN-SELCHANGEDA = -402;
  604. define inline-only constant $TVN-SELCHANGEDW = -451;
  605. define inline-only constant $TVS-HASBUTTONS = #x0001;
  606. define inline-only constant $TVS-HASLINES = #x0002;
  607. define inline-only constant $TVS-LINESATROOT = #x0004;
  608. define inline-only constant $TVS-SHOWSELALWAYS = #x0020;
  609. define inline-only constant $TVSIL-NORMAL = 0;
  610. define inline-only constant $UDM-GETPOS = #x468;
  611. define inline-only constant $UDM-SETPOS = #x467;
  612. define inline-only constant $UDM-SETRANGE = #x465;
  613. define inline-only constant $UDS-ARROWKEYS = #x0020;
  614. define inline-only constant $UDS-AUTOBUDDY = #x0010;
  615. define inline-only constant $UDS-HORZ = #x0040;
  616. define inline-only constant $UDS-WRAP = #x0001;
  617. define inline-only constant $VARIABLE-PITCH = 2;
  618. define inline-only constant $VER-PLATFORM-WIN32-NT = 2;
  619. define inline-only constant $VER-PLATFORM-WIN32-WINDOWS = 1;
  620. define inline-only constant $VER-PLATFORM-WIN32s = 0;
  621. define inline-only constant $VERTSIZE = 6;
  622. define inline-only constant $VK-ADD = #x6B;
  623. define inline-only constant $VK-APPS = #x5D;
  624. define inline-only constant $VK-BACK = #x08;
  625. define inline-only constant $VK-CANCEL = #x03;
  626. define inline-only constant $VK-CAPITAL = #x14;
  627. define inline-only constant $VK-CLEAR = #x0C;
  628. define inline-only constant $VK-CONTROL = #x11;
  629. define inline-only constant $VK-DECIMAL = #x6E;
  630. define inline-only constant $VK-DELETE = #x2E;
  631. define inline-only constant $VK-DIVIDE = #x6F;
  632. define inline-only constant $VK-DOWN = #x28;
  633. define inline-only constant $VK-END = #x23;
  634. define inline-only constant $VK-ESCAPE = #x1B;
  635. define inline-only constant $VK-EXECUTE = #x2B;
  636. define inline-only constant $VK-F1 = #x70;
  637. define inline-only constant $VK-F10 = #x79;
  638. define inline-only constant $VK-F11 = #x7A;
  639. define inline-only constant $VK-F12 = #x7B;
  640. define inline-only constant $VK-F13 = #x7C;
  641. define inline-only constant $VK-F14 = #x7D;
  642. define inline-only constant $VK-F15 = #x7E;
  643. define inline-only constant $VK-F16 = #x7F;
  644. define inline-only constant $VK-F17 = #x80;
  645. define inline-only constant $VK-F18 = #x81;
  646. define inline-only constant $VK-F19 = #x82;
  647. define inline-only constant $VK-F2 = #x71;
  648. define inline-only constant $VK-F20 = #x83;
  649. define inline-only constant $VK-F21 = #x84;
  650. define inline-only constant $VK-F22 = #x85;
  651. define inline-only constant $VK-F23 = #x86;
  652. define inline-only constant $VK-F24 = #x87;
  653. define inline-only constant $VK-F3 = #x72;
  654. define inline-only constant $VK-F4 = #x73;
  655. define inline-only constant $VK-F5 = #x74;
  656. define inline-only constant $VK-F6 = #x75;
  657. define inline-only constant $VK-F7 = #x76;
  658. define inline-only constant $VK-F8 = #x77;
  659. define inline-only constant $VK-F9 = #x78;
  660. define inline-only constant $VK-HELP = #x2F;
  661. define inline-only constant $VK-HOME = #x24;
  662. define inline-only constant $VK-INSERT = #x2D;
  663. define inline-only constant $VK-LCONTROL = #xA2;
  664. define inline-only constant $VK-LEFT = #x25;
  665. define inline-only constant $VK-LWIN = #x5B;
  666. define inline-only constant $VK-MENU = #x12;
  667. define inline-only constant $VK-MULTIPLY = #x6A;
  668. define inline-only constant $VK-NEXT = #x22;
  669. define inline-only constant $VK-NUMLOCK = #x90;
  670. define inline-only constant $VK-NUMPAD0 = #x60;
  671. define inline-only constant $VK-NUMPAD1 = #x61;
  672. define inline-only constant $VK-NUMPAD2 = #x62;
  673. define inline-only constant $VK-NUMPAD3 = #x63;
  674. define inline-only constant $VK-NUMPAD4 = #x64;
  675. define inline-only constant $VK-NUMPAD5 = #x65;
  676. define inline-only constant $VK-NUMPAD6 = #x66;
  677. define inline-only constant $VK-NUMPAD7 = #x67;
  678. define inline-only constant $VK-NUMPAD8 = #x68;
  679. define inline-only constant $VK-NUMPAD9 = #x69;
  680. define inline-only constant $VK-PAUSE = #x13;
  681. define inline-only constant $VK-PRINT = #x2A;
  682. define inline-only constant $VK-PRIOR = #x21;
  683. define inline-only constant $VK-RETURN = #x0D;
  684. define inline-only constant $VK-RIGHT = #x27;
  685. define inline-only constant $VK-RMENU = #xA5;
  686. define inline-only constant $VK-RWIN = #x5C;
  687. define inline-only constant $VK-SCROLL = #x91;
  688. define inline-only constant $VK-SELECT = #x29;
  689. define inline-only constant $VK-SEPARATOR = #x6C;
  690. define inline-only constant $VK-SHIFT = #x10;
  691. define inline-only constant $VK-SNAPSHOT = #x2C;
  692. define inline-only constant $VK-SPACE = #x20;
  693. define inline-only constant $VK-SUBTRACT = #x6D;
  694. define inline-only constant $VK-TAB = #x09;
  695. define inline-only constant $VK-UP = #x26;
  696. define inline-only constant $WA-INACTIVE = 0;
  697. define inline-only constant $WHITE-BRUSH = 0;
  698. define inline-only constant $WHITE-PEN = 6;
  699. define inline-only constant $WHITENESS = #x00FF0062;
  700. define inline-only constant $WM-ACTIVATE = #x0006;
  701. define inline-only constant $WM-CHAR = #x0102;
  702. define inline-only constant $WM-CLOSE = #x0010;
  703. define inline-only constant $WM-COMMAND = #x0111;
  704. define inline-only constant $WM-DESTROY = #x0002;
  705. define inline-only constant $WM-ENABLE = #x000A;
  706. define inline-only constant $WM-ERASEBKGND = #x0014;
  707. define inline-only constant $WM-GETMINMAXINFO = #x0024;
  708. define inline-only constant $WM-GETTEXTLENGTH = #x000E;
  709. define inline-only constant $WM-HOTKEY = #x0312;
  710. define inline-only constant $WM-HSCROLL = #x0114;
  711. define inline-only constant $WM-INITMENUPOPUP = #x0117;
  712. define inline-only constant $WM-KEYDOWN = #x0100;
  713. define inline-only constant $WM-KEYUP = #x0101;
  714. define inline-only constant $WM-KILLFOCUS = #x0008;
  715. define inline-only constant $WM-LBUTTONDBLCLK = #x0203;
  716. define inline-only constant $WM-LBUTTONDOWN = #x0201;
  717. define inline-only constant $WM-LBUTTONUP = #x0202;
  718. define inline-only constant $WM-MBUTTONDBLCLK = #x0209;
  719. define inline-only constant $WM-MBUTTONDOWN = #x0207;
  720. define inline-only constant $WM-MBUTTONUP = #x0208;
  721. define inline-only constant $WM-MENUSELECT = #x011F;
  722. define inline-only constant $WM-MOUSEMOVE = #x0200;
  723. define inline-only constant $WM-MOVE = #x0003;
  724. define inline-only constant $WM-NOTIFY = #x004E;
  725. define inline-only constant $WM-NULL = #x0000;
  726. define inline-only constant $WM-PAINT = #x000F;
  727. define inline-only constant $WM-RBUTTONDBLCLK = #x0206;
  728. define inline-only constant $WM-RBUTTONDOWN = #x0204;
  729. define inline-only constant $WM-RBUTTONUP = #x0205;
  730. define inline-only constant $WM-SETCURSOR = #x0020;
  731. define inline-only constant $WM-MOUSEWHEEL = #x020A;
  732. define inline-only constant $WM-SETFOCUS = #x0007;
  733. define inline-only constant $WM-SETFONT = #x0030;
  734. define inline-only constant $WM-SETICON = #x0080;
  735. define inline-only constant $WM-SETREDRAW = #x000B;
  736. define inline-only constant $WM-SIZE = #x0005;
  737. define inline-only constant $WM-SYSCHAR = #x0106;
  738. define inline-only constant $WM-SYSKEYDOWN = #x0104;
  739. define inline-only constant $WM-SYSKEYUP = #x0105;
  740. define inline-only constant $WM-USER = #x0400;
  741. define inline-only constant $WM-VSCROLL = #x0115;
  742. define inline-only constant $WS-CAPTION = #x00C00000;
  743. define inline-only constant $WS-CHILD = as(<machine-word>, #x40000000);
  744. define inline-only constant $WS-CLIPSIBLINGS = #x04000000;
  745. define inline-only constant $WS-DISABLED = #x08000000;
  746. define inline-only constant $WS-EX-CLIENTEDGE = #x00000200;
  747. define inline-only constant $WS-EX-CONTROLPARENT = #x00010000;
  748. define inline-only constant $WS-EX-DLGMODALFRAME = #x00000001;
  749. define inline-only constant $WS-EX-NOPARENTNOTIFY = #x00000004;
  750. define inline-only constant $WS-EX-TOPMOST = #x00000008;
  751. define inline-only constant $WS-GROUP = #x00020000;
  752. define inline-only constant $WS-HSCROLL = #x00100000;
  753. define inline-only constant $WS-MAXIMIZE = #x01000000;
  754. define inline-only constant $WS-MAXIMIZEBOX = #x00010000;
  755. define inline-only constant $WS-MINIMIZE = as(<machine-word>, #x20000000);
  756. define inline-only constant $WS-ICONIC = $WS-MINIMIZE;
  757. define inline-only constant $WS-MINIMIZEBOX = #x00020000;
  758. define inline-only constant $WS-OVERLAPPED = #x00000000;
  759. define inline-only constant $WS-OVERLAPPEDWINDOW = logior($WS-OVERLAPPED, $WS-CAPTION, $WS-SYSMENU, $WS-THICKFRAME, $WS-MINIMIZEBOX, $WS-MAXIMIZEBOX);
  760. define inline-only constant $WS-SIZEBOX = $WS-THICKFRAME;
  761. define inline-only constant $WS-SYSMENU = #x00080000;
  762. define inline-only constant $WS-TABSTOP = #x00010000;
  763. define inline-only constant $WS-THICKFRAME = #x00040000;
  764. define inline-only constant $WS-VSCROLL = #x00200000;
  765. define constant $STATUSCLASSNAME = "msctls_statusbar32";
  766. define constant $TRACKBAR-CLASS = "msctls_trackbar32";
  767. define constant $PROGRESS-CLASS = "msctls_progress32";
  768. define constant $UPDOWN-CLASS = "msctls_updown32";
  769. define constant $WC-LISTVIEW = "SysListView32";
  770. define constant $WC-TABCONTROL = "SysTabControl32";
  771. define constant $WC-TREEVIEW = "SysTreeView32";
  772. define constant $TOOLTIPS-CLASS = "tooltips_class32";