gdi32: Return a new path from PATH_FlattenPath instead of replacing the DC path.
[wine/multimedia.git] / include / winuser.rh
blobf8f99fb16d6e31068a9fb0a10ed02d1bd09f2b53
1 /*
2  * Copyright (C) the Wine project
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
19 /* Macro to deal with LP64 <=> LLP64 differences in numeric constants with 'l' modifier */
20 #ifndef __MSABI_LONG
21 # if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__)
22 #  define __MSABI_LONG(x)         x ## l
23 # else
24 #  define __MSABI_LONG(x)         x
25 # endif
26 #endif
28 #ifdef RC_INVOKED
29 # define MAKEINTRESOURCE(i)       i
30 #endif
33 #define RT_MANIFEST                                        MAKEINTRESOURCE(24)
34 #define CREATEPROCESS_MANIFEST_RESOURCE_ID                 MAKEINTRESOURCE(1)
35 #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID                MAKEINTRESOURCE(2)
36 #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
37 #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID              MAKEINTRESOURCE(1)
38 #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID              MAKEINTRESOURCE(16)
41 /*** ShowWindow() codes ***/
42 #define SW_HIDE                0
43 #define SW_SHOWNORMAL          1
44 #define SW_NORMAL              SW_SHOWNORMAL
45 #define SW_SHOWMINIMIZED       2
46 #define SW_SHOWMAXIMIZED       3
47 #define SW_MAXIMIZE            SW_SHOWMAXIMIZED
48 #define SW_SHOWNOACTIVATE      4
49 #define SW_SHOW                5
50 #define SW_MINIMIZE            6
51 #define SW_SHOWMINNOACTIVE     7
52 #define SW_SHOWNA              8
53 #define SW_RESTORE             9
54 #define SW_SHOWDEFAULT         10
55 #define SW_FORCEMINIMIZE       11
56 #define SW_MAX                 11
57 #define SW_NORMALNA            0xCC /* Undocumented. Flag in MinMaximize */
59 /* WM_SHOWWINDOW lParam codes */
60 #define SW_PARENTCLOSING       1
61 #define SW_OTHERZOOM           2
62 #define SW_PARENTOPENING       3
63 #define SW_OTHERUNZOOM         4
66 /*** Virtual key codes ***/
67 #define VK_LBUTTON             0x01
68 #define VK_RBUTTON             0x02
69 #define VK_CANCEL              0x03
70 #define VK_MBUTTON             0x04
71 #define VK_XBUTTON1            0x05
72 #define VK_XBUTTON2            0x06
73 /*                             0x07  Undefined */
74 #define VK_BACK                0x08
75 #define VK_TAB                 0x09
76 /*                             0x0A-0x0B  Undefined */
77 #define VK_CLEAR               0x0C
78 #define VK_RETURN              0x0D
79 /*                             0x0E-0x0F  Undefined */
80 #define VK_SHIFT               0x10
81 #define VK_CONTROL             0x11
82 #define VK_MENU                0x12
83 #define VK_PAUSE               0x13
84 #define VK_CAPITAL             0x14
86 #define VK_KANA                0x15
87 #define VK_HANGEUL             VK_KANA
88 #define VK_HANGUL              VK_KANA
89 #define VK_JUNJA               0x17
90 #define VK_FINAL               0x18
91 #define VK_HANJA               0x19
92 #define VK_KANJI               VK_HANJA
94 /*                             0x1A       Undefined */
95 #define VK_ESCAPE              0x1B
97 #define VK_CONVERT             0x1C
98 #define VK_NONCONVERT          0x1D
99 #define VK_ACCEPT              0x1E
100 #define VK_MODECHANGE          0x1F
102 #define VK_SPACE               0x20
103 #define VK_PRIOR               0x21
104 #define VK_NEXT                0x22
105 #define VK_END                 0x23
106 #define VK_HOME                0x24
107 #define VK_LEFT                0x25
108 #define VK_UP                  0x26
109 #define VK_RIGHT               0x27
110 #define VK_DOWN                0x28
111 #define VK_SELECT              0x29
112 #define VK_PRINT               0x2A /* OEM specific in Windows 3.1 SDK */
113 #define VK_EXECUTE             0x2B
114 #define VK_SNAPSHOT            0x2C
115 #define VK_INSERT              0x2D
116 #define VK_DELETE              0x2E
117 #define VK_HELP                0x2F
118 /* VK_0 - VK-9                 0x30-0x39  Use ASCII instead */
119 /*                             0x3A-0x40  Undefined */
120 /* VK_A - VK_Z                 0x41-0x5A  Use ASCII instead */
121 #define VK_LWIN                0x5B
122 #define VK_RWIN                0x5C
123 #define VK_APPS                0x5D
124 /*                             0x5E Unassigned */
125 #define VK_SLEEP               0x5F
126 #define VK_NUMPAD0             0x60
127 #define VK_NUMPAD1             0x61
128 #define VK_NUMPAD2             0x62
129 #define VK_NUMPAD3             0x63
130 #define VK_NUMPAD4             0x64
131 #define VK_NUMPAD5             0x65
132 #define VK_NUMPAD6             0x66
133 #define VK_NUMPAD7             0x67
134 #define VK_NUMPAD8             0x68
135 #define VK_NUMPAD9             0x69
136 #define VK_MULTIPLY            0x6A
137 #define VK_ADD                 0x6B
138 #define VK_SEPARATOR           0x6C
139 #define VK_SUBTRACT            0x6D
140 #define VK_DECIMAL             0x6E
141 #define VK_DIVIDE              0x6F
142 #define VK_F1                  0x70
143 #define VK_F2                  0x71
144 #define VK_F3                  0x72
145 #define VK_F4                  0x73
146 #define VK_F5                  0x74
147 #define VK_F6                  0x75
148 #define VK_F7                  0x76
149 #define VK_F8                  0x77
150 #define VK_F9                  0x78
151 #define VK_F10                 0x79
152 #define VK_F11                 0x7A
153 #define VK_F12                 0x7B
154 #define VK_F13                 0x7C
155 #define VK_F14                 0x7D
156 #define VK_F15                 0x7E
157 #define VK_F16                 0x7F
158 #define VK_F17                 0x80
159 #define VK_F18                 0x81
160 #define VK_F19                 0x82
161 #define VK_F20                 0x83
162 #define VK_F21                 0x84
163 #define VK_F22                 0x85
164 #define VK_F23                 0x86
165 #define VK_F24                 0x87
166 /*                             0x88-0x8F  Unassigned */
167 #define VK_NUMLOCK             0x90
168 #define VK_SCROLL              0x91
169 #define VK_OEM_NEC_EQUAL       0x92
170 #define VK_OEM_FJ_JISHO        0x92
171 #define VK_OEM_FJ_MASSHOU      0x93
172 #define VK_OEM_FJ_TOUROKU      0x94
173 #define VK_OEM_FJ_LOYA         0x95
174 #define VK_OEM_FJ_ROYA         0x96
175 /*                             0x97-0x9F  Unassigned */
177  * differencing between right and left shift/control/alt key.
178  * Used only by GetAsyncKeyState() and GetKeyState().
179  */
180 #define VK_LSHIFT              0xA0
181 #define VK_RSHIFT              0xA1
182 #define VK_LCONTROL            0xA2
183 #define VK_RCONTROL            0xA3
184 #define VK_LMENU               0xA4
185 #define VK_RMENU               0xA5
187 #define VK_BROWSER_BACK        0xA6
188 #define VK_BROWSER_FORWARD     0xA7
189 #define VK_BROWSER_REFRESH     0xA8
190 #define VK_BROWSER_STOP        0xA9
191 #define VK_BROWSER_SEARCH      0xAA
192 #define VK_BROWSER_FAVORITES   0xAB
193 #define VK_BROWSER_HOME        0xAC
194 #define VK_VOLUME_MUTE         0xAD
195 #define VK_VOLUME_DOWN         0xAE
196 #define VK_VOLUME_UP           0xAF
197 #define VK_MEDIA_NEXT_TRACK    0xB0
198 #define VK_MEDIA_PREV_TRACK    0xB1
199 #define VK_MEDIA_STOP          0xB2
200 #define VK_MEDIA_PLAY_PAUSE    0xB3
201 #define VK_LAUNCH_MAIL         0xB4
202 #define VK_LAUNCH_MEDIA_SELECT 0xB5
203 #define VK_LAUNCH_APP1         0xB6
204 #define VK_LAUNCH_APP2         0xB7
206 /*                             0xB8-0xB9  Unassigned */
207 #define VK_OEM_1               0xBA
208 #define VK_OEM_PLUS            0xBB
209 #define VK_OEM_COMMA           0xBC
210 #define VK_OEM_MINUS           0xBD
211 #define VK_OEM_PERIOD          0xBE
212 #define VK_OEM_2               0xBF
213 #define VK_OEM_3               0xC0
214 /*                             0xC1-0xDA  Unassigned */
215 #define VK_OEM_4               0xDB
216 #define VK_OEM_5               0xDC
217 #define VK_OEM_6               0xDD
218 #define VK_OEM_7               0xDE
219 #define VK_OEM_8               0xDF
220 /*                             0xE0       OEM specific */
221 #define VK_OEM_AX              0xE1  /* "AX" key on Japanese AX keyboard */
222 #define VK_OEM_102             0xE2  /* "<>" or "\|" on RT 102-key keyboard */
223 #define VK_ICO_HELP            0xE3  /* Help key on ICO */
224 #define VK_ICO_00              0xE4  /* 00 key on ICO */
225 #define VK_PROCESSKEY          0xE5
226 /*                             0xE6       OEM specific */
228 #define VK_PACKET              0xE7
229 /*                             0xE8       Unassigned */
231 /*                             0xE9-0xF5  OEM specific */
232 #define VK_ATTN                0xF6
233 #define VK_CRSEL               0xF7
234 #define VK_EXSEL               0xF8
235 #define VK_EREOF               0xF9
236 #define VK_PLAY                0xFA
237 #define VK_ZOOM                0xFB
238 #define VK_NONAME              0xFC
239 #define VK_PA1                 0xFD
240 #define VK_OEM_CLEAR           0xFE
241 /*                             0xFF       Unassigned */
244 /*** Messages ***/
245 #ifndef NOWINMESSAGES
246 #define WM_NULL                0x0000
247 #define WM_CREATE              0x0001
248 #define WM_DESTROY             0x0002
249 #define WM_MOVE                0x0003
250 #define WM_SIZEWAIT            0x0004 /* DDK / Win16 */
251 #define WM_SIZE                0x0005
252 #define WM_ACTIVATE            0x0006
254 /* WM_ACTIVATE wParam values */
255 #define WA_INACTIVE            0
256 #define WA_ACTIVE              1
257 #define WA_CLICKACTIVE         2
259 #define WM_SETFOCUS            0x0007
260 #define WM_KILLFOCUS           0x0008
261 #define WM_SETVISIBLE          0x0009 /* DDK / Win16 */
262 #define WM_ENABLE              0x000a
263 #define WM_SETREDRAW           0x000b
264 #define WM_SETTEXT             0x000c
265 #define WM_GETTEXT             0x000d
266 #define WM_GETTEXTLENGTH       0x000e
267 #define WM_PAINT               0x000f
268 #define WM_CLOSE               0x0010
269 #define WM_QUERYENDSESSION     0x0011
270 #define WM_QUIT                0x0012
271 #define WM_QUERYOPEN           0x0013
272 #define WM_ERASEBKGND          0x0014
273 #define WM_SYSCOLORCHANGE      0x0015
274 #define WM_ENDSESSION          0x0016
275 #define WM_SYSTEMERROR         0x0017 /* DDK / Win16 */
276 #define WM_SHOWWINDOW          0x0018
277 #define WM_CTLCOLOR            0x0019
278 #define WM_WININICHANGE        0x001a
279 #define WM_SETTINGCHANGE       WM_WININICHANGE
280 #define WM_DEVMODECHANGE       0x001b
281 #define WM_ACTIVATEAPP         0x001c
282 #define WM_FONTCHANGE          0x001d
283 #define WM_TIMECHANGE          0x001e
284 #define WM_CANCELMODE          0x001f
285 #define WM_SETCURSOR           0x0020
286 #define WM_MOUSEACTIVATE       0x0021
287 #define WM_CHILDACTIVATE       0x0022
288 #define WM_QUEUESYNC           0x0023
289 #define WM_GETMINMAXINFO       0x0024
291 #define WM_PAINTICON           0x0026
292 #define WM_ICONERASEBKGND      0x0027
293 #define WM_NEXTDLGCTL          0x0028
294 #define WM_ALTTABACTIVE        0x0029 /* DDK / Win16 */
295 #define WM_SPOOLERSTATUS       0x002a
296 #define WM_DRAWITEM            0x002b
297 #define WM_MEASUREITEM         0x002c
298 #define WM_DELETEITEM          0x002d
299 #define WM_VKEYTOITEM          0x002e
300 #define WM_CHARTOITEM          0x002f
301 #define WM_SETFONT             0x0030
302 #define WM_GETFONT             0x0031
303 #define WM_SETHOTKEY           0x0032
304 #define WM_GETHOTKEY           0x0033
305 #define WM_FILESYSCHANGE       0x0034 /* DDK / Win16 */
306 #define WM_ISACTIVEICON        0x0035 /* DDK / Win16 */
307 #define WM_QUERYPARKICON       0x0036 /* Undocumented */
308 #define WM_QUERYDRAGICON       0x0037
309 #define WM_QUERYSAVESTATE      0x0038 /* Undocumented */
310 #define WM_COMPAREITEM         0x0039
311 #define WM_TESTING             0x003a /* DDK / Win16 */
313 #define WM_GETOBJECT           0x003d
315 #define WM_ACTIVATESHELLWINDOW 0x003e /* FIXME: Wine-only */
317 #define WM_COMPACTING          0x0041
319 #define WM_COMMNOTIFY          0x0044
320 #define WM_WINDOWPOSCHANGING   0x0046
321 #define WM_WINDOWPOSCHANGED    0x0047
323 #define WM_POWER               0x0048
325 /* Win32 4.0 messages */
326 #define WM_COPYDATA            0x004a
327 #define WM_CANCELJOURNAL       0x004b
328 #define WM_KEYF1               0x004d /* DDK / Win16 */
329 #define WM_NOTIFY              0x004e
330 #define WM_INPUTLANGCHANGEREQUEST 0x0050
331 #define WM_INPUTLANGCHANGE     0x0051
332 #define WM_TCARD               0x0052
333 #define WM_HELP                0x0053
334 #define WM_USERCHANGED         0x0054
335 #define WM_NOTIFYFORMAT        0x0055
337 /* WM_NOTIFYFORMAT commands and return values */
338 #define NFR_ANSI               1
339 #define NFR_UNICODE            2
340 #define NF_QUERY               3
341 #define NF_REQUERY             4
343 #define WM_CONTEXTMENU         0x007b
344 #define WM_STYLECHANGING       0x007c
345 #define WM_STYLECHANGED        0x007d
346 #define WM_DISPLAYCHANGE       0x007e
347 #define WM_GETICON             0x007f
348 #define WM_SETICON             0x0080
350 /* Non-client system messages */
351 #define WM_NCCREATE            0x0081
352 #define WM_NCDESTROY           0x0082
353 #define WM_NCCALCSIZE          0x0083
354 #define WM_NCHITTEST           0x0084
355 #define WM_NCPAINT             0x0085
356 #define WM_NCACTIVATE          0x0086
358 #define WM_GETDLGCODE          0x0087
359 #define WM_SYNCPAINT           0x0088
360 #define WM_SYNCTASK            0x0089 /* DDK / Win16 */
362 /* Non-client mouse messages */
363 #define WM_NCMOUSEMOVE         0x00a0
364 #define WM_NCLBUTTONDOWN       0x00a1
365 #define WM_NCLBUTTONUP         0x00a2
366 #define WM_NCLBUTTONDBLCLK     0x00a3
367 #define WM_NCRBUTTONDOWN       0x00a4
368 #define WM_NCRBUTTONUP         0x00a5
369 #define WM_NCRBUTTONDBLCLK     0x00a6
370 #define WM_NCMBUTTONDOWN       0x00a7
371 #define WM_NCMBUTTONUP         0x00a8
372 #define WM_NCMBUTTONDBLCLK     0x00a9
374 #define WM_NCXBUTTONDOWN       0x00ab
375 #define WM_NCXBUTTONUP         0x00ac
376 #define WM_NCXBUTTONDBLCLK     0x00ad
378 /* Raw input */
379 #define WM_INPUT_DEVICE_CHANGE 0x00fe
380 #define WM_INPUT               0x00ff
382 /* Keyboard messages */
383 #define WM_KEYFIRST            0x0100
384 #define WM_KEYDOWN             WM_KEYFIRST
385 #define WM_KEYUP               0x0101
386 #define WM_CHAR                0x0102
387 #define WM_DEADCHAR            0x0103
388 #define WM_SYSKEYDOWN          0x0104
389 #define WM_SYSKEYUP            0x0105
390 #define WM_SYSCHAR             0x0106
391 #define WM_SYSDEADCHAR         0x0107
392 #define WM_UNICHAR             0x0109
393 #define WM_KEYLAST             WM_UNICHAR
395 #define UNICODE_NOCHAR         0xffff
397 /* Win32 4.0 messages for IME */
398 #define WM_IME_STARTCOMPOSITION 0x010d
399 #define WM_IME_ENDCOMPOSITION  0x010e
400 #define WM_IME_COMPOSITION     0x010f
401 #define WM_IME_KEYLAST         0x010f
403 #define WM_INITDIALOG          0x0110
404 #define WM_COMMAND             0x0111
405 #define WM_SYSCOMMAND          0x0112
406 #define WM_TIMER               0x0113
408 /* Scroll messages */
409 #define WM_HSCROLL             0x0114
410 #define WM_VSCROLL             0x0115
412 /* Menu messages */
413 #define WM_INITMENU            0x0116
414 #define WM_INITMENUPOPUP       0x0117
416 #define WM_MENUSELECT          0x011F
417 #define WM_MENUCHAR            0x0120
418 #define WM_ENTERIDLE           0x0121
420 #define WM_MENURBUTTONUP       0x0122
421 #define WM_MENUDRAG            0x0123
422 #define WM_MENUGETOBJECT       0x0124
423 #define WM_UNINITMENUPOPUP     0x0125
424 #define WM_MENUCOMMAND         0x0126
426 #define WM_CHANGEUISTATE       0x0127
427 #define WM_UPDATEUISTATE       0x0128
428 #define WM_QUERYUISTATE        0x0129
430 /* UI flags for WM_*UISTATE */
431 /* for low-order word of wparam */
432 #define UIS_SET                1
433 #define UIS_CLEAR              2
434 #define UIS_INITIALIZE         3
435 /* for hi-order word of wparam */
436 #define UISF_HIDEFOCUS         0x1
437 #define UISF_HIDEACCEL         0x2
438 #define UISF_ACTIVE            0x4
440 #define WM_LBTRACKPOINT        0x0131 /* DDK / Win16 */
442 /* Win32 CTLCOLOR messages */
443 #define WM_CTLCOLORMSGBOX      0x0132
444 #define WM_CTLCOLOREDIT        0x0133
445 #define WM_CTLCOLORLISTBOX     0x0134
446 #define WM_CTLCOLORBTN         0x0135
447 #define WM_CTLCOLORDLG         0x0136
448 #define WM_CTLCOLORSCROLLBAR   0x0137
449 #define WM_CTLCOLORSTATIC      0x0138
451 #define MN_GETHMENU            0x01E1
453 /* Mouse messages */
454 #define WM_MOUSEFIRST          0x0200
455 #define WM_MOUSEMOVE           WM_MOUSEFIRST
456 #define WM_LBUTTONDOWN         0x0201
457 #define WM_LBUTTONUP           0x0202
458 #define WM_LBUTTONDBLCLK       0x0203
459 #define WM_RBUTTONDOWN         0x0204
460 #define WM_RBUTTONUP           0x0205
461 #define WM_RBUTTONDBLCLK       0x0206
462 #define WM_MBUTTONDOWN         0x0207
463 #define WM_MBUTTONUP           0x0208
464 #define WM_MBUTTONDBLCLK       0x0209
465 #define WM_MOUSEWHEEL          0x020A
466 #define WM_XBUTTONDOWN         0x020B
467 #define WM_XBUTTONUP           0x020C
468 #define WM_XBUTTONDBLCLK       0x020D
469 #define WM_MOUSEHWHEEL         0x020E
470 #define WM_MOUSELAST           WM_MOUSEHWHEEL
472 /* Macros for the mouse messages */
473 #define WHEEL_DELTA            120
474 #define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
475 #define WHEEL_PAGESCROLL       (UINT_MAX)
477 #define XBUTTON1               0x0001
478 #define XBUTTON2               0x0002
480 #define WM_PARENTNOTIFY        0x0210
481 #define WM_ENTERMENULOOP       0x0211
482 #define WM_EXITMENULOOP        0x0212
483 #define WM_NEXTMENU            0x0213
485 /* Win32 4.0 messages */
486 #define WM_SIZING              0x0214
487 #define WM_CAPTURECHANGED      0x0215
488 #define WM_MOVING              0x0216
489 #define WM_POWERBROADCAST      0x0218
490 #define WM_DEVICECHANGE        0x0219
491 /* MDI messages */
492 #define WM_MDICREATE           0x0220
493 #define WM_MDIDESTROY          0x0221
494 #define WM_MDIACTIVATE         0x0222
495 #define WM_MDIRESTORE          0x0223
496 #define WM_MDINEXT             0x0224
497 #define WM_MDIMAXIMIZE         0x0225
498 #define WM_MDITILE             0x0226
499 #define WM_MDICASCADE          0x0227
500 #define WM_MDIICONARRANGE      0x0228
501 #define WM_MDIGETACTIVE        0x0229
502 #define WM_MDISETMENU          0x0230
503 #define WM_MDIREFRESHMENU      0x0234
505 /* D&D messages */
506 #define WM_DROPOBJECT          0x022A /* DDK / Win16 */
507 #define WM_QUERYDROPOBJECT     0x022B /* DDK / Win16 */
508 #define WM_BEGINDRAG           0x022C /* DDK / Win16 */
509 #define WM_DRAGLOOP            0x022D /* DDK / Win16 */
510 #define WM_DRAGSELECT          0x022E /* DDK / Win16 */
511 #define WM_DRAGMOVE            0x022F /* DDK / Win16 */
513 #define WM_ENTERSIZEMOVE       0x0231
514 #define WM_EXITSIZEMOVE        0x0232
515 #define WM_DROPFILES           0x0233
517 /* Win32 4.0 messages for IME */
518 #define WM_IME_SETCONTEXT      0x0281
519 #define WM_IME_NOTIFY          0x0282
520 #define WM_IME_CONTROL         0x0283
521 #define WM_IME_COMPOSITIONFULL 0x0284
522 #define WM_IME_SELECT          0x0285
523 #define WM_IME_CHAR            0x0286
524 /* Win32 5.0 messages for IME */
525 #define WM_IME_REQUEST         0x0288
527 /* Win32 4.0 messages for IME */
528 #define WM_IME_KEYDOWN         0x0290
529 #define WM_IME_KEYUP           0x0291
531 #define WM_NCMOUSEHOVER        0x02A0
532 #define WM_MOUSEHOVER          0x02A1
533 #define WM_MOUSELEAVE          0x02A3
534 #define WM_NCMOUSELEAVE        0x02A2
536 #define WM_WTSSESSION_CHANGE   0x02B1
538 #define WM_TABLET_FIRST        0x02c0
539 #define WM_TABLET_LAST         0x02df
541 /* Clipboard command messages */
542 #define WM_CUT                 0x0300
543 #define WM_COPY                0x0301
544 #define WM_PASTE               0x0302
545 #define WM_CLEAR               0x0303
546 #define WM_UNDO                0x0304
548 /* Clipboard owner messages */
549 #define WM_RENDERFORMAT        0x0305
550 #define WM_RENDERALLFORMATS    0x0306
551 #define WM_DESTROYCLIPBOARD    0x0307
553 /* Clipboard viewer messages */
554 #define WM_DRAWCLIPBOARD       0x0308
555 #define WM_PAINTCLIPBOARD      0x0309
556 #define WM_VSCROLLCLIPBOARD    0x030A
557 #define WM_SIZECLIPBOARD       0x030B
558 #define WM_ASKCBFORMATNAME     0x030C
559 #define WM_CHANGECBCHAIN       0x030D
560 #define WM_HSCROLLCLIPBOARD    0x030E
562 #define WM_QUERYNEWPALETTE     0x030F
563 #define WM_PALETTEISCHANGING   0x0310
564 #define WM_PALETTECHANGED      0x0311
565 #define WM_HOTKEY              0x0312
567 #define WM_PRINT               0x0317
568 #define WM_PRINTCLIENT         0x0318
569 #define WM_APPCOMMAND          0x0319
570 #define WM_THEMECHANGED        0x031A
571 #define WM_CLIPBOARDUPDATE     0x031D
573 #define WM_DWMCOMPOSITIONCHANGED 0x031E
574 #define WM_DWMNCRENDERINGCHANGED 0x031F
575 #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
576 #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321
578 #define WM_GETTITLEBARINFOEX   0x033F
580 #define WM_HANDHELDFIRST       0x0358
581 #define WM_HANDHELDLAST        0x035F
583 #define WM_AFXFIRST            0x0360
584 #define WM_AFXLAST             0x037F
586 #define WM_PENWINFIRST         0x0380
587 #define WM_PENWINLAST          0x038F
589 #define WM_USER                0x0400
591 #define WM_APP                 0x8000
594 /* wParam for WM_SIZING message */
595 #define WMSZ_LEFT              1
596 #define WMSZ_RIGHT             2
597 #define WMSZ_TOP               3
598 #define WMSZ_TOPLEFT           4
599 #define WMSZ_TOPRIGHT          5
600 #define WMSZ_BOTTOM            6
601 #define WMSZ_BOTTOMLEFT        7
602 #define WMSZ_BOTTOMRIGHT       8
604 /* WM_NCHITTEST return codes */
605 #define HTERROR                (-2)
606 #define HTTRANSPARENT          (-1)
607 #define HTNOWHERE              0
608 #define HTCLIENT               1
609 #define HTCAPTION              2
610 #define HTSYSMENU              3
611 #define HTSIZE                 4
612 #define HTMENU                 5
613 #define HTHSCROLL              6
614 #define HTVSCROLL              7
615 #define HTMINBUTTON            8
616 #define HTMAXBUTTON            9
617 #define HTLEFT                 10
618 #define HTRIGHT                11
619 #define HTTOP                  12
620 #define HTTOPLEFT              13
621 #define HTTOPRIGHT             14
622 #define HTBOTTOM               15
623 #define HTBOTTOMLEFT           16
624 #define HTBOTTOMRIGHT          17
625 #define HTBORDER               18
626 #define HTGROWBOX              HTSIZE
627 #define HTREDUCE               HTMINBUTTON
628 #define HTZOOM                 HTMAXBUTTON
629 #define HTOBJECT               19
630 #define HTCLOSE                20
631 #define HTHELP                 21
632 #define HTSIZEFIRST            HTLEFT
633 #define HTSIZELAST             HTBOTTOMRIGHT
635 /* SendMessageTimeout flags */
636 #define SMTO_NORMAL            0x0000
637 #define SMTO_BLOCK             0x0001
638 #define SMTO_ABORTIFHUNG       0x0002
639 #define SMTO_NOTIMEOUTIFNOTHUNG 0x0008
641 /* WM_MOUSEACTIVATE return values */
642 #define MA_ACTIVATE            1
643 #define MA_ACTIVATEANDEAT      2
644 #define MA_NOACTIVATE          3
645 #define MA_NOACTIVATEANDEAT    4
647 /* WM_GETICON/WM_SETICON params values */
648 #define ICON_SMALL             0
649 #define ICON_BIG               1
650 #define ICON_SMALL2            2
652 /* WM_SIZE message wParam values */
653 #define SIZE_RESTORED          0
654 #define SIZE_MINIMIZED         1
655 #define SIZE_MAXIMIZED         2
656 #define SIZE_MAXSHOW           3
657 #define SIZE_MAXHIDE           4
658 #define SIZENORMAL             SIZE_RESTORED
659 #define SIZEICONIC             SIZE_MINIMIZED
660 #define SIZEFULLSCREEN         SIZE_MAXIMIZED
661 #define SIZEZOOMSHOW           SIZE_MAXSHOW
662 #define SIZEZOOMHIDE           SIZE_MAXHIDE
664 /* WM_NCCALCSIZE return flags */
665 #define WVR_ALIGNTOP           0x0010
666 #define WVR_ALIGNLEFT          0x0020
667 #define WVR_ALIGNBOTTOM        0x0040
668 #define WVR_ALIGNRIGHT         0x0080
669 #define WVR_HREDRAW            0x0100
670 #define WVR_VREDRAW            0x0200
671 #define WVR_REDRAW             (WVR_HREDRAW | WVR_VREDRAW)
672 #define WVR_VALIDRECTS         0x0400
674 /* Key status flags for mouse events */
675 #ifndef NOKEYSTATES
676 #define MK_LBUTTON             0x0001
677 #define MK_RBUTTON             0x0002
678 #define MK_SHIFT               0x0004
679 #define MK_CONTROL             0x0008
680 #define MK_MBUTTON             0x0010
681 #define MK_XBUTTON1            0x0020
682 #define MK_XBUTTON2            0x0040
683 #endif /* NOKEYSTATES */
685 #ifndef NOTRACKMOUSEEVENT
686 #define TME_HOVER              0x00000001
687 #define TME_LEAVE              0x00000002
688 #define TME_NONCLIENT          0x00000010
689 #define TME_QUERY              0x40000000
690 #define TME_CANCEL             0x80000000
691 #define HOVER_DEFAULT          0xFFFFFFFF
692 #endif /* NOTRACKMOUSEEVENT */
694 #endif /* NOWINMESSAGES */
697 /*** Window Styles ***/
698 #ifndef NOWINSTYLES
699 #define WS_OVERLAPPED          __MSABI_LONG(0x00000000)
700 #define WS_POPUP               __MSABI_LONG(0x80000000)
701 #define WS_CHILD               __MSABI_LONG(0x40000000)
702 #define WS_MINIMIZE            __MSABI_LONG(0x20000000)
703 #define WS_VISIBLE             __MSABI_LONG(0x10000000)
704 #define WS_DISABLED            __MSABI_LONG(0x08000000)
705 #define WS_CLIPSIBLINGS        __MSABI_LONG(0x04000000)
706 #define WS_CLIPCHILDREN        __MSABI_LONG(0x02000000)
707 #define WS_MAXIMIZE            __MSABI_LONG(0x01000000)
708 #define WS_BORDER              __MSABI_LONG(0x00800000)
709 #define WS_DLGFRAME            __MSABI_LONG(0x00400000)
710 #define WS_VSCROLL             __MSABI_LONG(0x00200000)
711 #define WS_HSCROLL             __MSABI_LONG(0x00100000)
712 #define WS_SYSMENU             __MSABI_LONG(0x00080000)
713 #define WS_THICKFRAME          __MSABI_LONG(0x00040000)
714 #define WS_GROUP               __MSABI_LONG(0x00020000)
715 #define WS_TABSTOP             __MSABI_LONG(0x00010000)
716 #define WS_MINIMIZEBOX         __MSABI_LONG(0x00020000)
717 #define WS_MAXIMIZEBOX         __MSABI_LONG(0x00010000)
718 #define WS_CAPTION             (WS_BORDER | WS_DLGFRAME)
719 #define WS_TILED               WS_OVERLAPPED
720 #define WS_ICONIC              WS_MINIMIZE
721 #define WS_SIZEBOX             WS_THICKFRAME
722 #define WS_OVERLAPPEDWINDOW    (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
723 #define WS_POPUPWINDOW         (WS_POPUP | WS_BORDER | WS_SYSMENU)
724 #define WS_CHILDWINDOW         WS_CHILD
725 #define WS_TILEDWINDOW         WS_OVERLAPPEDWINDOW
726 #endif /* NOWINSTYLES */
729 /*** Window extended styles ***/
730 #ifndef NOWINSTYLES
731 #define WS_EX_DLGMODALFRAME    __MSABI_LONG(0x00000001)
732 #define WS_EX_DRAGDETECT       __MSABI_LONG(0x00000002) /* Undocumented */
733 #define WS_EX_NOPARENTNOTIFY   __MSABI_LONG(0x00000004)
734 #define WS_EX_TOPMOST          __MSABI_LONG(0x00000008)
735 #define WS_EX_ACCEPTFILES      __MSABI_LONG(0x00000010)
736 #define WS_EX_TRANSPARENT      __MSABI_LONG(0x00000020)
737 #define WS_EX_MDICHILD         __MSABI_LONG(0x00000040)
738 #define WS_EX_TOOLWINDOW       __MSABI_LONG(0x00000080)
739 #define WS_EX_WINDOWEDGE       __MSABI_LONG(0x00000100)
740 #define WS_EX_CLIENTEDGE       __MSABI_LONG(0x00000200)
741 #define WS_EX_CONTEXTHELP      __MSABI_LONG(0x00000400)
742 #define WS_EX_RIGHT            __MSABI_LONG(0x00001000)
743 #define WS_EX_LEFT             __MSABI_LONG(0x00000000)
744 #define WS_EX_RTLREADING       __MSABI_LONG(0x00002000)
745 #define WS_EX_LTRREADING       __MSABI_LONG(0x00000000)
746 #define WS_EX_LEFTSCROLLBAR    __MSABI_LONG(0x00004000)
747 #define WS_EX_RIGHTSCROLLBAR   __MSABI_LONG(0x00000000)
748 #define WS_EX_CONTROLPARENT    __MSABI_LONG(0x00010000)
749 #define WS_EX_STATICEDGE       __MSABI_LONG(0x00020000)
750 #define WS_EX_APPWINDOW        __MSABI_LONG(0x00040000)
751 #define WS_EX_LAYERED          __MSABI_LONG(0x00080000)
752 #define WS_EX_NOINHERITLAYOUT  __MSABI_LONG(0x00100000)
753 #define WS_EX_LAYOUTRTL        __MSABI_LONG(0x00400000)
754 #define WS_EX_COMPOSITED       __MSABI_LONG(0x02000000)
755 #define WS_EX_NOACTIVATE       __MSABI_LONG(0x08000000)
757 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
758 #define WS_EX_PALETTEWINDOW    (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
759 #endif /* NOWINSTYLES */
762 /*** Class styles ***/
763 #ifndef NOWINSTYLES
764 #define CS_VREDRAW             0x00000001
765 #define CS_HREDRAW             0x00000002
766 #define CS_KEYCVTWINDOW        0x00000004 /* DDK / Win16 */
767 #define CS_DBLCLKS             0x00000008
768 #define CS_OWNDC               0x00000020
769 #define CS_CLASSDC             0x00000040
770 #define CS_PARENTDC            0x00000080
771 #define CS_NOKEYCVT            0x00000100 /* DDK / Win16 */
772 #define CS_NOCLOSE             0x00000200
773 #define CS_SAVEBITS            0x00000800
774 #define CS_BYTEALIGNCLIENT     0x00001000
775 #define CS_BYTEALIGNWINDOW     0x00002000
776 #define CS_GLOBALCLASS         0x00004000
777 #define CS_IME                 0x00010000
778 #define CS_DROPSHADOW          0x00020000
779 #endif /* NOWINSTYLES */
782 /*** Predefined Clipboard Formats ***/
783 #ifndef NOCLIPBOARD
784 #define CF_TEXT                1
785 #define CF_BITMAP              2
786 #define CF_METAFILEPICT        3
787 #define CF_SYLK                4
788 #define CF_DIF                 5
789 #define CF_TIFF                6
790 #define CF_OEMTEXT             7
791 #define CF_DIB                 8
792 #define CF_PALETTE             9
793 #define CF_PENDATA             10
794 #define CF_RIFF                11
795 #define CF_WAVE                12
796 #define CF_UNICODETEXT         13
797 #define CF_ENHMETAFILE         14
798 #define CF_HDROP               15
799 #define CF_LOCALE              16
800 #define CF_DIBV5               17
801 #define CF_MAX                 18
803 #define CF_OWNERDISPLAY        0x0080
804 #define CF_DSPTEXT             0x0081
805 #define CF_DSPBITMAP           0x0082
806 #define CF_DSPMETAFILEPICT     0x0083
807 #define CF_DSPENHMETAFILE      0x008E
809 /* "Private" formats don't get GlobalFree()'d */
810 #define CF_PRIVATEFIRST        0x0200
811 #define CF_PRIVATELAST         0x02FF
813 /* "GDIOBJ" formats do get DeleteObject()'d */
814 #define CF_GDIOBJFIRST         0x0300
815 #define CF_GDIOBJLAST          0x03FF
816 #endif /* NOCLIPBOARD */
819 /*** Menu flags ***/
820 #ifndef NOMENUS
821 #define MF_INSERT              __MSABI_LONG(0x00000000)
822 #define MF_CHANGE              __MSABI_LONG(0x00000080)
823 #define MF_APPEND              __MSABI_LONG(0x00000100)
824 #define MF_DELETE              __MSABI_LONG(0x00000200)
825 #define MF_REMOVE              __MSABI_LONG(0x00001000)
826 #define MF_END                 __MSABI_LONG(0x00000080)
828 #define MF_ENABLED             __MSABI_LONG(0x00000000)
829 #define MF_GRAYED              __MSABI_LONG(0x00000001)
830 #define MF_DISABLED            __MSABI_LONG(0x00000002)
831 #define MF_STRING              __MSABI_LONG(0x00000000)
832 #define MF_BITMAP              __MSABI_LONG(0x00000004)
833 #define MF_UNCHECKED           __MSABI_LONG(0x00000000)
834 #define MF_CHECKED             __MSABI_LONG(0x00000008)
835 #define MF_POPUP               __MSABI_LONG(0x00000010)
836 #define MF_MENUBARBREAK        __MSABI_LONG(0x00000020)
837 #define MF_MENUBREAK           __MSABI_LONG(0x00000040)
838 #define MF_UNHILITE            __MSABI_LONG(0x00000000)
839 #define MF_HILITE              __MSABI_LONG(0x00000080)
840 #define MF_OWNERDRAW           __MSABI_LONG(0x00000100)
841 #define MF_USECHECKBITMAPS     __MSABI_LONG(0x00000200)
842 #define MF_BYCOMMAND           __MSABI_LONG(0x00000000)
843 #define MF_BYPOSITION          __MSABI_LONG(0x00000400)
844 #define MF_SEPARATOR           __MSABI_LONG(0x00000800)
845 #define MF_DEFAULT             __MSABI_LONG(0x00001000)
846 #define MF_SYSMENU             __MSABI_LONG(0x00002000)
847 #define MF_HELP                __MSABI_LONG(0x00004000)
848 #define MF_RIGHTJUSTIFY        __MSABI_LONG(0x00004000)
849 #define MF_MOUSESELECT         __MSABI_LONG(0x00008000)
851 /* Flags for extended menu item types */
852 #define MFT_STRING             MF_STRING
853 #define MFT_BITMAP             MF_BITMAP
854 #define MFT_MENUBARBREAK       MF_MENUBARBREAK
855 #define MFT_MENUBREAK          MF_MENUBREAK
856 #define MFT_OWNERDRAW          MF_OWNERDRAW
857 #define MFT_RADIOCHECK         __MSABI_LONG(0x00000200)
858 #define MFT_SEPARATOR          MF_SEPARATOR
859 #define MFT_RIGHTORDER         __MSABI_LONG(0x00002000)
860 #define MFT_RIGHTJUSTIFY       MF_RIGHTJUSTIFY
862 /* Flags for extended menu item states */
863 #define MFS_GRAYED             __MSABI_LONG(0x00000003)
864 #define MFS_DISABLED           MFS_GRAYED
865 #define MFS_CHECKED            MF_CHECKED
866 #define MFS_HILITE             MF_HILITE
867 #define MFS_ENABLED            MF_ENABLED
868 #define MFS_UNCHECKED          MF_UNCHECKED
869 #define MFS_UNHILITE           MF_UNHILITE
870 #define MFS_DEFAULT            MF_DEFAULT
872 /* DDK / Win16 defines */
873 #define MFS_MASK               __MSABI_LONG(0x0000108B)
874 #define MFS_HOTTRACKDRAWN      __MSABI_LONG(0x10000000)
875 #define MFS_CACHEDBMP          __MSABI_LONG(0x20000000)
876 #define MFS_BOTTOMGAPDROP      __MSABI_LONG(0x40000000)
877 #define MFS_TOPGAPDROP         __MSABI_LONG(0x80000000)
878 #define MFS_GAPDROP            (MFS_BOTTOMGAPDROP | MFS_TOPGAPDROP)
879 #endif /* NOMENUS */
882 /*** WM_SYSCOMMAND parameters ***/
883 #ifndef NOSYSCOMMANDS
884 /* At least HP-UX defines it in /usr/include/sys/signal.h */
885 # ifdef SC_SIZE
886 #  undef SC_SIZE
887 # endif
888 #define SC_SIZE                0xf000
889 #define SC_MOVE                0xf010
890 #define SC_MINIMIZE            0xf020
891 #define SC_MAXIMIZE            0xf030
892 #define SC_NEXTWINDOW          0xf040
893 #define SC_PREVWINDOW          0xf050
894 #define SC_CLOSE               0xf060
895 #define SC_VSCROLL             0xf070
896 #define SC_HSCROLL             0xf080
897 #define SC_MOUSEMENU           0xf090
898 #define SC_KEYMENU             0xf100
899 #define SC_ARRANGE             0xf110
900 #define SC_RESTORE             0xf120
901 #define SC_TASKLIST            0xf130
902 #define SC_SCREENSAVE          0xf140
903 #define SC_HOTKEY              0xf150
905 /* Win32 4.0 */
906 #define SC_DEFAULT             0xf160
907 #define SC_MONITORPOWER        0xf170
908 #define SC_CONTEXTHELP         0xf180
909 #define SC_SEPARATOR           0xf00f
911 /* Obsolete names */
912 #define SC_ICON               SC_MINIMIZE
913 #define SC_ZOOM               SC_MAXIMIZE
914 #endif /* NOSYSCOMMANDS */
917 /*** OEM Resource Ordinal Numbers ***/
918 #ifdef OEMRESOURCE
919 #define OBM_TRTYPE             32732 /* FIXME: Wine-only */
920 #define OBM_LFARROWI           32734
921 #define OBM_RGARROWI           32735
922 #define OBM_DNARROWI           32736
923 #define OBM_UPARROWI           32737
924 #define OBM_COMBO              32738
925 #define OBM_MNARROW            32739
926 #define OBM_LFARROWD           32740
927 #define OBM_RGARROWD           32741
928 #define OBM_DNARROWD           32742
929 #define OBM_UPARROWD           32743
930 #define OBM_RESTORED           32744
931 #define OBM_ZOOMD              32745
932 #define OBM_REDUCED            32746
933 #define OBM_RESTORE            32747
934 #define OBM_ZOOM               32748
935 #define OBM_REDUCE             32749
936 #define OBM_LFARROW            32750
937 #define OBM_RGARROW            32751
938 #define OBM_DNARROW            32752
939 #define OBM_UPARROW            32753
940 #define OBM_CLOSE              32754
941 #define OBM_OLD_RESTORE        32755
942 #define OBM_OLD_ZOOM           32756
943 #define OBM_OLD_REDUCE         32757
944 #define OBM_BTNCORNERS         32758
945 #define OBM_CHECKBOXES         32759
946 #define OBM_CHECK              32760
947 #define OBM_BTSIZE             32761
948 #define OBM_OLD_LFARROW        32762
949 #define OBM_OLD_RGARROW        32763
950 #define OBM_OLD_DNARROW        32764
951 #define OBM_OLD_UPARROW        32765
952 #define OBM_SIZE               32766
953 #define OBM_OLD_CLOSE          32767
955 #define OCR_NORMAL             32512
956 #define OCR_IBEAM              32513
957 #define OCR_WAIT               32514
958 #define OCR_CROSS              32515
959 #define OCR_UP                 32516
960 #define OCR_SIZE               32640
961 #define OCR_ICON               32641
962 #define OCR_SIZENWSE           32642
963 #define OCR_SIZENESW           32643
964 #define OCR_SIZEWE             32644
965 #define OCR_SIZENS             32645
966 #define OCR_SIZEALL            32646
967 #define OCR_ICOCUR             32647
968 #define OCR_NO                 32648
969 #define OCR_HAND               32649
970 #define OCR_APPSTARTING        32650
971 #define OCR_HELP               32651 /* DDK / Win16 */
972 #define OCR_DRAGOBJECT         32653 /* FIXME: Wine-only */
974 #define OIC_SAMPLE             32512
975 #define OIC_HAND               32513
976 #define OIC_ERROR              OIC_HAND
977 #define OIC_QUES               32514
978 #define OIC_BANG               32515
979 #define OIC_WARNING            OIC_BANG
980 #define OIC_NOTE               32516
981 #define OIC_INFORMATION        OIC_NOTE
982 #define OIC_WINLOGO            32517
983 #endif /* OEMRESOURCE */
986 /*** Predefined resources ***/
987 #ifndef NOICONS
988 #define IDI_APPLICATION        MAKEINTRESOURCE(32512)
989 #define IDI_HAND               MAKEINTRESOURCE(32513)
990 #define IDI_QUESTION           MAKEINTRESOURCE(32514)
991 #define IDI_EXCLAMATION        MAKEINTRESOURCE(32515)
992 #define IDI_ASTERISK           MAKEINTRESOURCE(32516)
993 #define IDI_WINLOGO            MAKEINTRESOURCE(32517)
995 #define IDI_WARNING            IDI_EXCLAMATION
996 #define IDI_ERROR              IDI_HAND
997 #define IDI_INFORMATION        IDI_ASTERISK
998 #endif /* NOICONS */
1001 /*** Standard dialog button IDs ***/
1002 #define IDOK                   1
1003 #define IDCANCEL               2
1004 #define IDABORT                3
1005 #define IDRETRY                4
1006 #define IDIGNORE               5
1007 #define IDYES                  6
1008 #define IDNO                   7
1009 #define IDCLOSE                8
1010 #define IDHELP                 9
1011 #define IDTRYAGAIN             10
1012 #define IDCONTINUE             11
1013 #ifndef IDTIMEOUT
1014 #define IDTIMEOUT              32000
1015 #endif
1018 /*** Edit control styles ***/
1019 #ifndef NOWINSTYLES
1020 #define ES_LEFT                __MSABI_LONG(0x00000000)
1021 #define ES_CENTER              __MSABI_LONG(0x00000001)
1022 #define ES_RIGHT               __MSABI_LONG(0x00000002)
1023 #define ES_MULTILINE           __MSABI_LONG(0x00000004)
1024 #define ES_UPPERCASE           __MSABI_LONG(0x00000008)
1025 #define ES_LOWERCASE           __MSABI_LONG(0x00000010)
1026 #define ES_PASSWORD            __MSABI_LONG(0x00000020)
1027 #define ES_AUTOVSCROLL         __MSABI_LONG(0x00000040)
1028 #define ES_AUTOHSCROLL         __MSABI_LONG(0x00000080)
1029 #define ES_NOHIDESEL           __MSABI_LONG(0x00000100)
1030 #define ES_COMBO               __MSABI_LONG(0x00000200) /* Undocumented. Parent is a combobox */
1031 #define ES_OEMCONVERT          __MSABI_LONG(0x00000400)
1032 #define ES_READONLY            __MSABI_LONG(0x00000800)
1033 #define ES_WANTRETURN          __MSABI_LONG(0x00001000)
1034 #define ES_NUMBER              __MSABI_LONG(0x00002000)
1035 #endif /* NOWINSTYLES */
1038 /*** Edit control messages ***/
1039 #ifndef NOWINMESSAGES
1040 #define EM_GETSEL              0x00b0
1041 #define EM_SETSEL              0x00b1
1042 #define EM_GETRECT             0x00b2
1043 #define EM_SETRECT             0x00b3
1044 #define EM_SETRECTNP           0x00b4
1045 #define EM_SCROLL              0x00b5
1046 #define EM_LINESCROLL          0x00b6
1047 #define EM_SCROLLCARET         0x00b7
1048 #define EM_GETMODIFY           0x00b8
1049 #define EM_SETMODIFY           0x00b9
1050 #define EM_GETLINECOUNT        0x00ba
1051 #define EM_LINEINDEX           0x00bb
1052 #define EM_SETHANDLE           0x00bc
1053 #define EM_GETHANDLE           0x00bd
1054 #define EM_GETTHUMB            0x00be
1055 /* FIXME : missing from specs 0x00bf and 0x00c0 */
1056 #define EM_LINELENGTH          0x00c1
1057 #define EM_REPLACESEL          0x00c2
1058 /* FIXME : missing from specs 0x00c3 */
1059 #define EM_GETLINE             0x00c4
1060 #define EM_LIMITTEXT           0x00c5
1061 #define EM_SETLIMITTEXT        EM_LIMITTEXT
1062 #define EM_CANUNDO             0x00c6
1063 #define EM_UNDO                0x00c7
1064 #define EM_FMTLINES            0x00c8
1065 #define EM_LINEFROMCHAR        0x00c9
1066 /* FIXME : missing from specs 0x00ca */
1067 #define EM_SETTABSTOPS         0x00cb
1068 #define EM_SETPASSWORDCHAR     0x00cc
1069 #define EM_EMPTYUNDOBUFFER     0x00cd
1070 #define EM_GETFIRSTVISIBLELINE 0x00ce
1071 #define EM_SETREADONLY         0x00cf
1072 #define EM_SETWORDBREAKPROC    0x00d0
1073 #define EM_GETWORDBREAKPROC    0x00d1
1074 #define EM_GETPASSWORDCHAR     0x00d2
1075 #define EM_SETMARGINS          0x00d3
1076 #define EM_GETMARGINS          0x00d4
1077 #define EM_GETLIMITTEXT        0x00d5
1078 #define EM_POSFROMCHAR         0x00d6
1079 #define EM_CHARFROMPOS         0x00d7
1080 #define EM_SETIMESTATUS        0x00d8
1081 #define EM_GETIMESTATUS        0x00d9
1082 #endif /* NOWINMESSAGES */
1085 /*** Button control styles ***/
1086 #define BS_PUSHBUTTON          __MSABI_LONG(0x00000000)
1087 #define BS_DEFPUSHBUTTON       __MSABI_LONG(0x00000001)
1088 #define BS_CHECKBOX            __MSABI_LONG(0x00000002)
1089 #define BS_AUTOCHECKBOX        __MSABI_LONG(0x00000003)
1090 #define BS_RADIOBUTTON         __MSABI_LONG(0x00000004)
1091 #define BS_3STATE              __MSABI_LONG(0x00000005)
1092 #define BS_AUTO3STATE          __MSABI_LONG(0x00000006)
1093 #define BS_GROUPBOX            __MSABI_LONG(0x00000007)
1094 #define BS_USERBUTTON          __MSABI_LONG(0x00000008)
1095 #define BS_AUTORADIOBUTTON     __MSABI_LONG(0x00000009)
1096 #define BS_PUSHBOX             __MSABI_LONG(0x0000000A)
1097 #define BS_OWNERDRAW           __MSABI_LONG(0x0000000B)
1098 #define BS_TYPEMASK            __MSABI_LONG(0x0000000F)
1099 #define BS_LEFTTEXT            __MSABI_LONG(0x00000020)
1100 #define BS_RIGHTBUTTON         BS_LEFTTEXT
1102 #define BS_TEXT                __MSABI_LONG(0x00000000)
1103 #define BS_ICON                __MSABI_LONG(0x00000040)
1104 #define BS_BITMAP              __MSABI_LONG(0x00000080)
1105 #define BS_LEFT                __MSABI_LONG(0x00000100)
1106 #define BS_RIGHT               __MSABI_LONG(0x00000200)
1107 #define BS_CENTER              __MSABI_LONG(0x00000300)
1108 #define BS_TOP                 __MSABI_LONG(0x00000400)
1109 #define BS_BOTTOM              __MSABI_LONG(0x00000800)
1110 #define BS_VCENTER             __MSABI_LONG(0x00000C00)
1111 #define BS_PUSHLIKE            __MSABI_LONG(0x00001000)
1112 #define BS_MULTILINE           __MSABI_LONG(0x00002000)
1113 #define BS_NOTIFY              __MSABI_LONG(0x00004000)
1114 #define BS_FLAT                __MSABI_LONG(0x00008000)
1117 /*** Button notification codes ***/
1118 #define BN_CLICKED             0
1119 #define BN_PAINT               1
1120 #define BN_HILITE              2
1121 #define BN_PUSHED              BN_HILITE
1122 #define BN_UNHILITE            3
1123 #define BN_UNPUSHED            BN_UNHILITE
1124 #define BN_DISABLE             4
1125 #define BN_DOUBLECLICKED       5
1126 #define BN_DBLCLK              BN_DOUBLECLICKED
1127 #define BN_SETFOCUS            6
1128 #define BN_KILLFOCUS           7
1131 /*** Win32 button control messages ***/
1132 #define BM_GETCHECK            0x00f0
1133 #define BM_SETCHECK            0x00f1
1134 #define BM_GETSTATE            0x00f2
1135 #define BM_SETSTATE            0x00f3
1136 #define BM_SETSTYLE            0x00f4
1137 #define BM_CLICK               0x00f5
1138 #define BM_GETIMAGE            0x00f6
1139 #define BM_SETIMAGE            0x00f7
1141 /* Button states */
1142 #define BST_UNCHECKED          0x0000
1143 #define BST_CHECKED            0x0001
1144 #define BST_INDETERMINATE      0x0002
1145 #define BST_PUSHED             0x0004
1146 #define BST_FOCUS              0x0008
1148 /*** Static Control Styles ***/
1149 #define SS_LEFT                __MSABI_LONG(0x00000000)
1150 #define SS_CENTER              __MSABI_LONG(0x00000001)
1151 #define SS_RIGHT               __MSABI_LONG(0x00000002)
1152 #define SS_ICON                __MSABI_LONG(0x00000003)
1153 #define SS_BLACKRECT           __MSABI_LONG(0x00000004)
1154 #define SS_GRAYRECT            __MSABI_LONG(0x00000005)
1155 #define SS_WHITERECT           __MSABI_LONG(0x00000006)
1156 #define SS_BLACKFRAME          __MSABI_LONG(0x00000007)
1157 #define SS_GRAYFRAME           __MSABI_LONG(0x00000008)
1158 #define SS_WHITEFRAME          __MSABI_LONG(0x00000009)
1159 #define SS_USERITEM            __MSABI_LONG(0x0000000A)
1160 #define SS_SIMPLE              __MSABI_LONG(0x0000000B)
1161 #define SS_LEFTNOWORDWRAP      __MSABI_LONG(0x0000000C)
1162 #define SS_OWNERDRAW           __MSABI_LONG(0x0000000D)
1163 #define SS_BITMAP              __MSABI_LONG(0x0000000E)
1164 #define SS_ENHMETAFILE         __MSABI_LONG(0x0000000F)
1165 #define SS_ETCHEDHORZ          __MSABI_LONG(0x00000010)
1166 #define SS_ETCHEDVERT          __MSABI_LONG(0x00000011)
1167 #define SS_ETCHEDFRAME         __MSABI_LONG(0x00000012)
1168 #define SS_TYPEMASK            __MSABI_LONG(0x0000001F)
1170 #define SS_REALSIZECONTROL     __MSABI_LONG(0x00000040)
1171 #define SS_NOPREFIX            __MSABI_LONG(0x00000080)
1172 #define SS_NOTIFY              __MSABI_LONG(0x00000100)
1173 #define SS_CENTERIMAGE         __MSABI_LONG(0x00000200)
1174 #define SS_RIGHTJUST           __MSABI_LONG(0x00000400)
1175 #define SS_REALSIZEIMAGE       __MSABI_LONG(0x00000800)
1176 #define SS_SUNKEN              __MSABI_LONG(0x00001000)
1177 #define SS_EDITCONTROL         __MSABI_LONG(0x00002000)
1178 #define SS_ENDELLIPSIS         __MSABI_LONG(0x00004000)
1179 #define SS_PATHELLIPSIS        __MSABI_LONG(0x00008000)
1180 #define SS_WORDELLIPSIS        __MSABI_LONG(0x0000C000)
1181 #define SS_ELLIPSISMASK        SS_WORDELLIPSIS
1184 /*** Dialog styles ***/
1185 #define DS_ABSALIGN            __MSABI_LONG(0x00000001)
1186 #define DS_SYSMODAL            __MSABI_LONG(0x00000002)
1187 #define DS_3DLOOK              __MSABI_LONG(0x00000004) /* win95 */
1188 #define DS_FIXEDSYS            __MSABI_LONG(0x00000008) /* win95 */
1189 #define DS_NOFAILCREATE        __MSABI_LONG(0x00000010) /* win95 */
1190 #define DS_LOCALEDIT           __MSABI_LONG(0x00000020)
1191 #define DS_SETFONT             __MSABI_LONG(0x00000040)
1192 #define DS_MODALFRAME          __MSABI_LONG(0x00000080)
1193 #define DS_NOIDLEMSG           __MSABI_LONG(0x00000100)
1194 #define DS_SETFOREGROUND       __MSABI_LONG(0x00000200) /* win95 */
1195 #define DS_CONTROL             __MSABI_LONG(0x00000400) /* win95 */
1196 #define DS_CENTER              __MSABI_LONG(0x00000800) /* win95 */
1197 #define DS_CENTERMOUSE         __MSABI_LONG(0x00001000) /* win95 */
1198 #define DS_CONTEXTHELP         __MSABI_LONG(0x00002000) /* win95 */
1199 #define DS_USEPIXELS           __MSABI_LONG(0x00008000)
1200 #define DS_SHELLFONT           (DS_SETFONT | DS_FIXEDSYS)
1203 /*** Listbox styles ***/
1204 #ifndef NOWINSTYLES
1205 #define LBS_NOTIFY             __MSABI_LONG(0x00000001)
1206 #define LBS_SORT               __MSABI_LONG(0x00000002)
1207 #define LBS_NOREDRAW           __MSABI_LONG(0x00000004)
1208 #define LBS_MULTIPLESEL        __MSABI_LONG(0x00000008)
1209 #define LBS_OWNERDRAWFIXED     __MSABI_LONG(0x00000010)
1210 #define LBS_OWNERDRAWVARIABLE  __MSABI_LONG(0x00000020)
1211 #define LBS_HASSTRINGS         __MSABI_LONG(0x00000040)
1212 #define LBS_USETABSTOPS        __MSABI_LONG(0x00000080)
1213 #define LBS_NOINTEGRALHEIGHT   __MSABI_LONG(0x00000100)
1214 #define LBS_MULTICOLUMN        __MSABI_LONG(0x00000200)
1215 #define LBS_WANTKEYBOARDINPUT  __MSABI_LONG(0x00000400)
1216 #define LBS_EXTENDEDSEL        __MSABI_LONG(0x00000800)
1217 #define LBS_DISABLENOSCROLL    __MSABI_LONG(0x00001000)
1218 #define LBS_NODATA             __MSABI_LONG(0x00002000)
1219 #define LBS_NOSEL              __MSABI_LONG(0x00004000)
1220 #define LBS_COMBOBOX           __MSABI_LONG(0x00008000)
1221 #define LBS_STANDARD           (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
1222 #endif /* NOWINSTYLES */
1224 /*** Combo box styles ***/
1225 #ifndef NOWINSTYLES
1226 #define CBS_SIMPLE             __MSABI_LONG(0x00000001)
1227 #define CBS_DROPDOWN           __MSABI_LONG(0x00000002)
1228 #define CBS_DROPDOWNLIST       __MSABI_LONG(0x00000003)
1229 #define CBS_OWNERDRAWFIXED     __MSABI_LONG(0x00000010)
1230 #define CBS_OWNERDRAWVARIABLE  __MSABI_LONG(0x00000020)
1231 #define CBS_AUTOHSCROLL        __MSABI_LONG(0x00000040)
1232 #define CBS_OEMCONVERT         __MSABI_LONG(0x00000080)
1233 #define CBS_SORT               __MSABI_LONG(0x00000100)
1234 #define CBS_HASSTRINGS         __MSABI_LONG(0x00000200)
1235 #define CBS_NOINTEGRALHEIGHT   __MSABI_LONG(0x00000400)
1236 #define CBS_DISABLENOSCROLL    __MSABI_LONG(0x00000800)
1238 #define CBS_UPPERCASE          __MSABI_LONG(0x00002000)
1239 #define CBS_LOWERCASE          __MSABI_LONG(0x00004000)
1240 #endif /* NOWINSTYLES */
1243 /*** Scrollbar styles ***/
1244 #ifndef NOWINSTYLES
1245 #define SBS_HORZ               __MSABI_LONG(0x00000000)
1246 #define SBS_VERT               __MSABI_LONG(0x00000001)
1247 #define SBS_TOPALIGN           __MSABI_LONG(0x00000002)
1248 #define SBS_LEFTALIGN          __MSABI_LONG(0x00000002)
1249 #define SBS_BOTTOMALIGN        __MSABI_LONG(0x00000004)
1250 #define SBS_RIGHTALIGN         __MSABI_LONG(0x00000004)
1251 #define SBS_SIZEBOXTOPLEFTALIGN __MSABI_LONG(0x00000002)
1252 #define SBS_SIZEBOXBOTTOMRIGHTALIGN __MSABI_LONG(0x00000004)
1253 #define SBS_SIZEBOX            __MSABI_LONG(0x00000008)
1254 #define SBS_SIZEGRIP           __MSABI_LONG(0x00000010)
1255 #endif /* NOWINSTYLES */
1257 /*** WinHelp commands ***/
1258 #define HELP_CONTEXT           __MSABI_LONG(0x00000001)
1259 #define HELP_QUIT              __MSABI_LONG(0x00000002)
1260 #define HELP_INDEX             __MSABI_LONG(0x00000003)
1261 #define HELP_CONTENTS          HELP_INDEX
1262 #define HELP_HELPONHELP        __MSABI_LONG(0x00000004)
1263 #define HELP_SETINDEX          __MSABI_LONG(0x00000005)
1264 #define HELP_SETCONTENTS       HELP_SETINDEX
1265 #define HELP_CONTEXTPOPUP      __MSABI_LONG(0x00000008)
1266 #define HELP_FORCEFILE         __MSABI_LONG(0x00000009)
1267 #define HELP_KEY               __MSABI_LONG(0x00000101)
1268 #define HELP_COMMAND           __MSABI_LONG(0x00000102)
1269 #define HELP_PARTIALKEY        __MSABI_LONG(0x00000105)
1270 #define HELP_MULTIKEY          __MSABI_LONG(0x00000201)
1271 #define HELP_SETWINPOS         __MSABI_LONG(0x00000203)
1273 #define HELP_CONTEXTMENU       0x000a
1274 #define HELP_FINDER            0x000b
1275 #define HELP_WM_HELP           0x000c
1276 #define HELP_SETPOPUP_POS      0x000d
1277 #define HELP_TCARD_DATA        0x0010
1278 #define HELP_TCARD_OTHER_CALLER 0x0011
1279 #define HELP_TCARD             0x8000
1281 #define IDH_NO_HELP            28440
1282 #define IDH_MISSING_CONTEXT    28441
1283 #define IDH_GENERIC_HELP_BUTTON 28442
1284 #define IDH_OK                 28443
1285 #define IDH_CANCEL             28444
1286 #define IDH_HELP               28445