VirtualBox

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

Last change on this file since 19678 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

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

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