VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/winuser.rh

最後變更 在這個檔案是 69505,由 vboxsync 提交於 7 年 前

More scm updates

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette