VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/winuser.rh@ 22496

最後變更 在這個檔案從22496是 22496,由 vboxsync 提交於 16 年 前

crOpenGL: update wine to 1.1.27 and better fix for depthstencil surface refcounting

  • 屬性 svn:eol-style 設為 native
檔案大小: 14.8 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 * Sun 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, Sun 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/*
29 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
30 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
31 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
32 * a choice of LGPL license versions is made available with the language indicating
33 * that LGPLv2 or any later version may be used, or where a choice of which version
34 * of the LGPL is applied is otherwise unspecified.
35 */
36
37/* Window Styles */
38#define WS_OVERLAPPED 0x00000000L
39#define WS_POPUP 0x80000000L
40#define WS_CHILD 0x40000000L
41#define WS_MINIMIZE 0x20000000L
42#define WS_VISIBLE 0x10000000L
43#define WS_DISABLED 0x08000000L
44#define WS_CLIPSIBLINGS 0x04000000L
45#define WS_CLIPCHILDREN 0x02000000L
46#define WS_MAXIMIZE 0x01000000L
47#define WS_CAPTION 0x00C00000L
48#define WS_BORDER 0x00800000L
49#define WS_DLGFRAME 0x00400000L
50#define WS_VSCROLL 0x00200000L
51#define WS_HSCROLL 0x00100000L
52#define WS_SYSMENU 0x00080000L
53#define WS_THICKFRAME 0x00040000L
54#define WS_GROUP 0x00020000L
55#define WS_TABSTOP 0x00010000L
56#define WS_MINIMIZEBOX 0x00020000L
57#define WS_MAXIMIZEBOX 0x00010000L
58#define WS_TILED WS_OVERLAPPED
59#define WS_ICONIC WS_MINIMIZE
60#define WS_SIZEBOX WS_THICKFRAME
61#define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
62#define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
63#define WS_CHILDWINDOW (WS_CHILD)
64#define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW)
65
66/* Window extended styles */
67#define WS_EX_DLGMODALFRAME 0x00000001L
68#define WS_EX_DRAGDETECT 0x00000002L
69#define WS_EX_NOPARENTNOTIFY 0x00000004L
70#define WS_EX_TOPMOST 0x00000008L
71#define WS_EX_ACCEPTFILES 0x00000010L
72#define WS_EX_TRANSPARENT 0x00000020L
73#define WS_EX_MDICHILD 0x00000040L
74#define WS_EX_TOOLWINDOW 0x00000080L
75#define WS_EX_WINDOWEDGE 0x00000100L
76#define WS_EX_CLIENTEDGE 0x00000200L
77#define WS_EX_CONTEXTHELP 0x00000400L
78#define WS_EX_RIGHT 0x00001000L
79#define WS_EX_LEFT 0x00000000L
80#define WS_EX_RTLREADING 0x00002000L
81#define WS_EX_LTRREADING 0x00000000L
82#define WS_EX_LEFTSCROLLBAR 0x00004000L
83#define WS_EX_RIGHTSCROLLBAR 0x00000000L
84#define WS_EX_CONTROLPARENT 0x00010000L
85#define WS_EX_STATICEDGE 0x00020000L
86#define WS_EX_APPWINDOW 0x00040000L
87#define WS_EX_LAYERED 0x00080000L
88#define WS_EX_NOINHERITLAYOUT 0x00100000L
89#define WS_EX_LAYOUTRTL 0x00400000L
90#define WS_EX_COMPOSITED 0x02000000L
91#define WS_EX_NOACTIVATE 0x08000000L
92
93#define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE)
94#define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST)
95
96/* Standard dialog button IDs */
97#define IDOK 1
98#define IDCANCEL 2
99#define IDABORT 3
100#define IDRETRY 4
101#define IDIGNORE 5
102#define IDYES 6
103#define IDNO 7
104#define IDCLOSE 8
105#define IDHELP 9
106#define IDTRYAGAIN 10
107#define IDCONTINUE 11
108
109/* Win32 button control messages */
110#define BM_GETCHECK 0x00f0
111#define BM_SETCHECK 0x00f1
112#define BM_GETSTATE 0x00f2
113#define BM_SETSTATE 0x00f3
114#define BM_SETSTYLE 0x00f4
115#define BM_CLICK 0x00f5
116#define BM_GETIMAGE 0x00f6
117#define BM_SETIMAGE 0x00f7
118
119/* Button states */
120#define BST_UNCHECKED 0x0000
121#define BST_CHECKED 0x0001
122#define BST_INDETERMINATE 0x0002
123#define BST_PUSHED 0x0004
124#define BST_FOCUS 0x0008
125
126/* Button control styles */
127#define BS_PUSHBUTTON 0x00000000L
128#define BS_DEFPUSHBUTTON 0x00000001L
129#define BS_CHECKBOX 0x00000002L
130#define BS_AUTOCHECKBOX 0x00000003L
131#define BS_RADIOBUTTON 0x00000004L
132#define BS_3STATE 0x00000005L
133#define BS_AUTO3STATE 0x00000006L
134#define BS_GROUPBOX 0x00000007L
135#define BS_USERBUTTON 0x00000008L
136#define BS_AUTORADIOBUTTON 0x00000009L
137#define BS_OWNERDRAW 0x0000000BL
138#define BS_LEFTTEXT 0x00000020L
139#define BS_RIGHTBUTTON BS_LEFTTEXT
140
141#define BS_TEXT 0x00000000L
142#define BS_ICON 0x00000040L
143#define BS_BITMAP 0x00000080L
144#define BS_LEFT 0x00000100L
145#define BS_RIGHT 0x00000200L
146#define BS_CENTER 0x00000300L
147#define BS_TOP 0x00000400L
148#define BS_BOTTOM 0x00000800L
149#define BS_VCENTER 0x00000C00L
150#define BS_PUSHLIKE 0x00001000L
151#define BS_MULTILINE 0x00002000L
152#define BS_NOTIFY 0x00004000L
153#define BS_FLAT 0x00008000L
154
155/* Combo box styles */
156#define CBS_SIMPLE 0x0001L
157#define CBS_DROPDOWN 0x0002L
158#define CBS_DROPDOWNLIST 0x0003L
159#define CBS_OWNERDRAWFIXED 0x0010L
160#define CBS_OWNERDRAWVARIABLE 0x0020L
161#define CBS_AUTOHSCROLL 0x0040L
162#define CBS_OEMCONVERT 0x0080L
163#define CBS_SORT 0x0100L
164#define CBS_HASSTRINGS 0x0200L
165#define CBS_NOINTEGRALHEIGHT 0x0400L
166#define CBS_DISABLENOSCROLL 0x0800L
167
168#define CBS_UPPERCASE 0x2000L
169#define CBS_LOWERCASE 0x4000L
170
171/* Dialog styles */
172#define DS_ABSALIGN 0x0001
173#define DS_SYSMODAL 0x0002
174#define DS_3DLOOK 0x0004 /* win95 */
175#define DS_FIXEDSYS 0x0008 /* win95 */
176#define DS_NOFAILCREATE 0x0010 /* win95 */
177#define DS_LOCALEDIT 0x0020
178#define DS_SETFONT 0x0040
179#define DS_MODALFRAME 0x0080
180#define DS_NOIDLEMSG 0x0100
181#define DS_SETFOREGROUND 0x0200 /* win95 */
182#define DS_CONTROL 0x0400 /* win95 */
183#define DS_CENTER 0x0800 /* win95 */
184#define DS_CENTERMOUSE 0x1000 /* win95 */
185#define DS_CONTEXTHELP 0x2000 /* win95 */
186#define DS_USEPIXELS 0x8000
187#define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)
188
189/* Edit control styles */
190#define ES_LEFT 0x00000000
191#define ES_CENTER 0x00000001
192#define ES_RIGHT 0x00000002
193#define ES_MULTILINE 0x00000004
194#define ES_UPPERCASE 0x00000008
195#define ES_LOWERCASE 0x00000010
196#define ES_PASSWORD 0x00000020
197#define ES_AUTOVSCROLL 0x00000040
198#define ES_AUTOHSCROLL 0x00000080
199#define ES_NOHIDESEL 0x00000100
200#define ES_COMBO 0x00000200 /* Undocumented. Parent is a combobox */
201#define ES_OEMCONVERT 0x00000400
202#define ES_READONLY 0x00000800
203#define ES_WANTRETURN 0x00001000
204#define ES_NUMBER 0x00002000
205
206
207#define HELP_CONTEXT 0x0001
208#define HELP_QUIT 0x0002
209#define HELP_INDEX 0x0003
210#define HELP_CONTENTS 0x0003
211#define HELP_HELPONHELP 0x0004
212#define HELP_SETINDEX 0x0005
213#define HELP_SETCONTENTS 0x0005
214#define HELP_CONTEXTPOPUP 0x0008
215#define HELP_FORCEFILE 0x0009
216#define HELP_KEY 0x0101
217#define HELP_COMMAND 0x0102
218#define HELP_PARTIALKEY 0x0105
219#define HELP_MULTIKEY 0x0201
220#define HELP_SETWINPOS 0x0203
221#define HELP_CONTEXTMENU 0x000a
222#define HELP_FINDER 0x000b
223#define HELP_WM_HELP 0x000c
224#define HELP_SETPOPUP_POS 0x000d
225
226#define HELP_TCARD 0x8000
227#define HELP_TCARD_DATA 0x0010
228#define HELP_TCARD_OTHER_CALLER 0x0011
229
230
231#define IDH_NO_HELP 28440
232#define IDH_MISSING_CONTEXT 28441
233#define IDH_GENERIC_HELP_BUTTON 28442
234#define IDH_OK 28443
235#define IDH_CANCEL 28444
236#define IDH_HELP 28445
237
238/* Listbox styles */
239#define LBS_NOTIFY 0x0001
240#define LBS_SORT 0x0002
241#define LBS_NOREDRAW 0x0004
242#define LBS_MULTIPLESEL 0x0008
243#define LBS_OWNERDRAWFIXED 0x0010
244#define LBS_OWNERDRAWVARIABLE 0x0020
245#define LBS_HASSTRINGS 0x0040
246#define LBS_USETABSTOPS 0x0080
247#define LBS_NOINTEGRALHEIGHT 0x0100
248#define LBS_MULTICOLUMN 0x0200
249#define LBS_WANTKEYBOARDINPUT 0x0400
250#define LBS_EXTENDEDSEL 0x0800
251#define LBS_DISABLENOSCROLL 0x1000
252#define LBS_NODATA 0x2000
253#define LBS_NOSEL 0x4000
254#define LBS_COMBOBOX 0x8000
255#define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
256
257/* Menu flags */
258#define MF_INSERT 0x0000
259#define MF_CHANGE 0x0080
260#define MF_APPEND 0x0100
261#define MF_DELETE 0x0200
262#define MF_REMOVE 0x1000
263#define MF_END 0x0080
264
265#define MF_ENABLED 0x0000
266#define MF_GRAYED 0x0001
267#define MF_DISABLED 0x0002
268#define MF_STRING 0x0000
269#define MF_BITMAP 0x0004
270#define MF_UNCHECKED 0x0000
271#define MF_CHECKED 0x0008
272#define MF_POPUP 0x0010
273#define MF_MENUBARBREAK 0x0020
274#define MF_MENUBREAK 0x0040
275#define MF_UNHILITE 0x0000
276#define MF_HILITE 0x0080
277#define MF_OWNERDRAW 0x0100
278#define MF_USECHECKBITMAPS 0x0200
279#define MF_BYCOMMAND 0x0000
280#define MF_BYPOSITION 0x0400
281#define MF_SEPARATOR 0x0800
282#define MF_DEFAULT 0x1000
283#define MF_SYSMENU 0x2000
284#define MF_HELP 0x4000
285#define MF_RIGHTJUSTIFY 0x4000
286#define MF_MOUSESELECT 0x8000
287
288/* Flags for extended menu item types. */
289#define MFT_STRING MF_STRING
290#define MFT_BITMAP MF_BITMAP
291#define MFT_MENUBARBREAK MF_MENUBARBREAK
292#define MFT_MENUBREAK MF_MENUBREAK
293#define MFT_OWNERDRAW MF_OWNERDRAW
294#define MFT_RADIOCHECK 0x00000200L
295#define MFT_SEPARATOR MF_SEPARATOR
296#define MFT_RIGHTORDER 0x00002000L
297#define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY
298
299/* Flags for extended menu item states. */
300#define MFS_GRAYED 0x00000003L
301#define MFS_DISABLED MFS_GRAYED
302#define MFS_CHECKED MF_CHECKED
303#define MFS_HILITE MF_HILITE
304#define MFS_ENABLED MF_ENABLED
305#define MFS_UNCHECKED MF_UNCHECKED
306#define MFS_UNHILITE MF_UNHILITE
307#define MFS_DEFAULT MF_DEFAULT
308#define MFS_MASK 0x0000108BL
309#define MFS_HOTTRACKDRAWN 0x10000000L
310#define MFS_CACHEDBMP 0x20000000L
311#define MFS_BOTTOMGAPDROP 0x40000000L
312#define MFS_TOPGAPDROP 0x80000000L
313#define MFS_GAPDROP 0xC0000000L
314/* Scrollbar styles */
315#define SBS_HORZ 0x0000L
316#define SBS_VERT 0x0001L
317#define SBS_TOPALIGN 0x0002L
318#define SBS_LEFTALIGN 0x0002L
319#define SBS_BOTTOMALIGN 0x0004L
320#define SBS_RIGHTALIGN 0x0004L
321#define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
322#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
323#define SBS_SIZEBOX 0x0008L
324#define SBS_SIZEGRIP 0x0010L
325
326/* WM_SYSCOMMAND parameters */
327#ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */
328#undef SC_SIZE
329#endif
330#define SC_SIZE 0xf000
331#define SC_MOVE 0xf010
332#define SC_MINIMIZE 0xf020
333#define SC_MAXIMIZE 0xf030
334#define SC_NEXTWINDOW 0xf040
335#define SC_PREVWINDOW 0xf050
336#define SC_CLOSE 0xf060
337#define SC_VSCROLL 0xf070
338#define SC_HSCROLL 0xf080
339#define SC_MOUSEMENU 0xf090
340#define SC_KEYMENU 0xf100
341#define SC_ARRANGE 0xf110
342#define SC_RESTORE 0xf120
343#define SC_TASKLIST 0xf130
344#define SC_SCREENSAVE 0xf140
345#define SC_HOTKEY 0xf150
346 /* Win32 4.0 */
347#define SC_DEFAULT 0xf160
348#define SC_MONITORPOWER 0xf170
349#define SC_CONTEXTHELP 0xf180
350#define SC_SEPARATOR 0xf00f
351
352/* obsolete names(SC_ICON and SC_ZOOM) */
353#define SC_ICON SC_MINIMIZE
354#define SC_ZOOM SC_MAXIMIZE
355
356/* Static Control Styles */
357#define SS_LEFT 0x00000000L
358#define SS_CENTER 0x00000001L
359#define SS_RIGHT 0x00000002L
360#define SS_ICON 0x00000003L
361#define SS_BLACKRECT 0x00000004L
362#define SS_GRAYRECT 0x00000005L
363#define SS_WHITERECT 0x00000006L
364#define SS_BLACKFRAME 0x00000007L
365#define SS_GRAYFRAME 0x00000008L
366#define SS_WHITEFRAME 0x00000009L
367#define SS_USERITEM 0x0000000AL
368#define SS_SIMPLE 0x0000000BL
369#define SS_LEFTNOWORDWRAP 0x0000000CL
370#define SS_OWNERDRAW 0x0000000DL
371#define SS_BITMAP 0x0000000EL
372#define SS_ENHMETAFILE 0x0000000FL
373#define SS_ETCHEDHORZ 0x00000010L
374#define SS_ETCHEDVERT 0x00000011L
375#define SS_ETCHEDFRAME 0x00000012L
376#define SS_TYPEMASK 0x0000001FL
377
378#define SS_REALSIZECONTROL 0x00000040L
379#define SS_NOPREFIX 0x00000080L
380#define SS_NOTIFY 0x00000100L
381#define SS_CENTERIMAGE 0x00000200L
382#define SS_RIGHTJUST 0x00000400L
383#define SS_REALSIZEIMAGE 0x00000800L
384#define SS_SUNKEN 0x00001000L
385#define SS_EDITCONTROL 0x00002000L
386#define SS_ENDELLIPSIS 0x00004000L
387#define SS_PATHELLIPSIS 0x00008000L
388#define SS_WORDELLIPSIS 0x0000C000L
389#define SS_ELLIPSISMASK 0x0000C000L
390
391/* ShowWindow() codes */
392#define SW_HIDE 0
393#define SW_SHOWNORMAL 1
394#define SW_NORMAL 1
395#define SW_SHOWMINIMIZED 2
396#define SW_SHOWMAXIMIZED 3
397#define SW_MAXIMIZE 3
398#define SW_SHOWNOACTIVATE 4
399#define SW_SHOW 5
400#define SW_MINIMIZE 6
401#define SW_SHOWMINNOACTIVE 7
402#define SW_SHOWNA 8
403#define SW_RESTORE 9
404#define SW_SHOWDEFAULT 10
405#define SW_FORCEMINIMIZE 11
406#define SW_MAX 11
407
408/* Predefined resources */
409#define IDI_APPLICATION MAKEINTRESOURCE(32512)
410#define IDI_HAND MAKEINTRESOURCE(32513)
411#define IDI_QUESTION MAKEINTRESOURCE(32514)
412#define IDI_EXCLAMATION MAKEINTRESOURCE(32515)
413#define IDI_ASTERISK MAKEINTRESOURCE(32516)
414#define IDI_WINLOGO MAKEINTRESOURCE(32517)
415
416#define IDI_WARNING IDI_EXCLAMATION
417#define IDI_ERROR IDI_HAND
418#define IDI_INFORMATION IDI_ASTERISK
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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