Mercurial > mplayer.hg
annotate loader/wine/winuser.h @ 35184:14913ddea4f5
Allow telecine filter to work for YUV16 formats.
author | cehoyos |
---|---|
date | Sun, 28 Oct 2012 14:32:30 +0000 |
parents | 26f673ba0675 |
children |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_WINUSER_H |
2 #define MPLAYER_WINUSER_H | |
1 | 3 |
4 #ifndef RC_INVOKED | |
5 #include <stdarg.h> | |
6 #endif | |
7 | |
30171
837cd9762b4e
Add required header #includes to satisfy 'make checkheaders'.
diego
parents:
29263
diff
changeset
|
8 #include "windef.h" |
1 | 9 #include "pshpack1.h" |
10 | |
11 /* flags for HIGHCONTRAST dwFlags field */ | |
12 #define HCF_HIGHCONTRASTON 0x00000001 | |
13 #define HCF_AVAILABLE 0x00000002 | |
14 #define HCF_HOTKEYACTIVE 0x00000004 | |
15 #define HCF_CONFIRMHOTKEY 0x00000008 | |
16 #define HCF_HOTKEYSOUND 0x00000010 | |
17 #define HCF_INDICATOR 0x00000020 | |
18 #define HCF_HOTKEYAVAILABLE 0x00000040 | |
19 | |
20 typedef struct tagHIGHCONTRASTA | |
21 { | |
22 UINT cbSize; | |
23 DWORD dwFlags; | |
24 LPSTR lpszDefaultScheme; | |
25 } HIGHCONTRASTA, *LPHIGHCONTRASTA; | |
26 | |
27 typedef struct tagHIGHCONTRASTW | |
28 { | |
29 UINT cbSize; | |
30 DWORD dwFlags; | |
31 LPWSTR lpszDefaultScheme; | |
32 } HIGHCONTRASTW, *LPHIGHCONTRASTW; | |
33 | |
34 DECL_WINELIB_TYPE_AW(HIGHCONTRAST) | |
35 DECL_WINELIB_TYPE_AW(LPHIGHCONTRAST) | |
36 | |
37 typedef struct | |
38 { | |
39 UINT message; | |
40 UINT paramL; | |
41 UINT paramH; | |
42 DWORD time; | |
43 HWND hwnd; | |
44 } EVENTMSG, *LPEVENTMSG; | |
45 | |
46 | |
47 /* Mouse hook structure */ | |
48 | |
49 typedef struct | |
50 { | |
51 POINT pt; | |
52 HWND hwnd; | |
53 UINT wHitTestCode; | |
54 DWORD dwExtraInfo; | |
55 } MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT; | |
56 | |
57 | |
58 /* Hardware hook structure */ | |
59 | |
60 typedef struct | |
61 { | |
62 HWND hWnd; | |
63 UINT wMessage; | |
64 WPARAM wParam; | |
65 LPARAM lParam; | |
66 } HARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT; | |
67 | |
68 | |
69 /* Debug hook structure */ | |
70 | |
71 typedef struct | |
72 { | |
73 DWORD idThread; | |
74 DWORD idThreadInstaller; | |
75 LPARAM lParam; | |
76 WPARAM wParam; | |
77 INT code; | |
78 } DEBUGHOOKINFO, *LPDEBUGHOOKINFO; | |
79 | |
80 #define HKL_PREV 0 | |
81 #define HKL_NEXT 1 | |
82 | |
83 #define KLF_ACTIVATE 0x00000001 | |
84 #define KLF_SUBSTITUTE_OK 0x00000002 | |
85 #define KLF_UNLOADPREVIOUS 0x00000004 | |
86 #define KLF_REORDER 0x00000008 | |
87 #define KLF_REPLACELANG 0x00000010 | |
88 #define KLF_NOTELLSHELL 0x00000080 | |
89 | |
90 #define KL_NAMELENGTH 9 | |
91 | |
92 /***** Dialogs *****/ | |
93 #ifdef FSHIFT | |
94 /* Gcc on Solaris has a version of this that we don't care about. */ | |
95 #undef FSHIFT | |
96 #endif | |
97 | |
98 #define FVIRTKEY TRUE /* Assumed to be == TRUE */ | |
99 #define FNOINVERT 0x02 | |
100 #define FSHIFT 0x04 | |
101 #define FCONTROL 0x08 | |
102 #define FALT 0x10 | |
103 | |
104 | |
105 typedef struct tagANIMATIONINFO | |
106 { | |
107 UINT cbSize; | |
108 INT iMinAnimate; | |
109 } ANIMATIONINFO, *LPANIMATIONINFO; | |
110 | |
111 typedef struct tagNMHDR | |
112 { | |
113 HWND hwndFrom; | |
114 UINT idFrom; | |
115 UINT code; | |
116 } NMHDR, *LPNMHDR; | |
117 | |
118 typedef struct | |
119 { | |
120 UINT cbSize; | |
121 INT iTabLength; | |
122 INT iLeftMargin; | |
123 INT iRightMargin; | |
124 UINT uiLengthDrawn; | |
125 } DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS; | |
126 | |
127 #define WM_USER 0x0400 | |
128 | |
129 #define DT_EDITCONTROL 0x00002000 | |
130 #define DT_PATH_ELLIPSIS 0x00004000 | |
131 #define DT_END_ELLIPSIS 0x00008000 | |
132 #define DT_MODIFYSTRING 0x00010000 | |
133 #define DT_RTLREADING 0x00020000 | |
134 #define DT_WORD_ELLIPSIS 0x00040000 | |
135 | |
136 typedef struct | |
137 { | |
138 LPARAM lParam; | |
139 WPARAM16 wParam; | |
140 UINT16 message; | |
141 HWND16 hwnd; | |
142 } CWPSTRUCT16, *LPCWPSTRUCT16; | |
143 | |
144 typedef struct | |
145 { | |
146 LPARAM lParam; | |
147 WPARAM wParam; | |
148 UINT message; | |
149 HWND hwnd; | |
150 } CWPSTRUCT, *LPCWPSTRUCT; | |
151 | |
152 | |
153 | |
154 typedef struct | |
155 { | |
156 LRESULT lResult; | |
157 LPARAM lParam; | |
158 WPARAM16 wParam; | |
159 DWORD message; | |
160 HWND16 hwnd; | |
161 } CWPRETSTRUCT16, *LPCWPRETSTRUCT16; | |
162 | |
163 typedef struct | |
164 { | |
165 LRESULT lResult; | |
166 LPARAM lParam; | |
167 WPARAM wParam; | |
168 DWORD message; | |
169 HWND hwnd; | |
170 } CWPRETSTRUCT, *LPCWPRETSTRUCT; | |
171 | |
24406 | 172 typedef struct |
1 | 173 { |
174 UINT length; | |
175 UINT flags; | |
176 UINT showCmd; | |
24406 | 177 POINT ptMinPosition WINE_PACKED; |
178 POINT ptMaxPosition WINE_PACKED; | |
179 RECT rcNormalPosition WINE_PACKED; | |
1 | 180 } WINDOWPLACEMENT, *LPWINDOWPLACEMENT; |
181 | |
182 | |
183 /* WINDOWPLACEMENT flags */ | |
184 #define WPF_SETMINPOSITION 0x0001 | |
185 #define WPF_RESTORETOMAXIMIZED 0x0002 | |
186 | |
187 /***** Dialogs *****/ | |
188 | |
189 /* cbWndExtra bytes for dialog class */ | |
190 #define DLGWINDOWEXTRA 30 | |
191 | |
192 /* Button control styles */ | |
193 #define BS_PUSHBUTTON 0x00000000L | |
194 #define BS_DEFPUSHBUTTON 0x00000001L | |
195 #define BS_CHECKBOX 0x00000002L | |
196 #define BS_AUTOCHECKBOX 0x00000003L | |
197 #define BS_RADIOBUTTON 0x00000004L | |
198 #define BS_3STATE 0x00000005L | |
199 #define BS_AUTO3STATE 0x00000006L | |
200 #define BS_GROUPBOX 0x00000007L | |
201 #define BS_USERBUTTON 0x00000008L | |
202 #define BS_AUTORADIOBUTTON 0x00000009L | |
203 #define BS_OWNERDRAW 0x0000000BL | |
204 #define BS_LEFTTEXT 0x00000020L | |
205 | |
206 #define BS_TEXT 0x00000000L | |
207 #define BS_ICON 0x00000040L | |
208 #define BS_BITMAP 0x00000080L | |
209 #define BS_LEFT 0x00000100L | |
210 #define BS_RIGHT 0x00000200L | |
211 #define BS_CENTER 0x00000300L | |
212 #define BS_TOP 0x00000400L | |
213 #define BS_BOTTOM 0x00000800L | |
214 #define BS_VCENTER 0x00000C00L | |
215 #define BS_PUSHLIKE 0x00001000L | |
216 #define BS_MULTILINE 0x00002000L | |
217 #define BS_NOTIFY 0x00004000L | |
218 #define BS_FLAT 0x00008000L | |
219 | |
220 /* Dialog styles */ | |
221 #define DS_ABSALIGN 0x0001 | |
222 #define DS_SYSMODAL 0x0002 | |
223 #define DS_3DLOOK 0x0004 /* win95 */ | |
224 #define DS_FIXEDSYS 0x0008 /* win95 */ | |
225 #define DS_NOFAILCREATE 0x0010 /* win95 */ | |
226 #define DS_LOCALEDIT 0x0020 | |
227 #define DS_SETFONT 0x0040 | |
228 #define DS_MODALFRAME 0x0080 | |
229 #define DS_NOIDLEMSG 0x0100 | |
230 #define DS_SETFOREGROUND 0x0200 /* win95 */ | |
231 #define DS_CONTROL 0x0400 /* win95 */ | |
232 #define DS_CENTER 0x0800 /* win95 */ | |
233 #define DS_CENTERMOUSE 0x1000 /* win95 */ | |
234 #define DS_CONTEXTHELP 0x2000 /* win95 */ | |
235 | |
236 | |
237 /* Dialog messages */ | |
238 #define DM_GETDEFID (WM_USER+0) | |
239 #define DM_SETDEFID (WM_USER+1) | |
240 | |
241 #define DC_HASDEFID 0x534b | |
242 | |
243 /* Owner draw control types */ | |
244 #define ODT_MENU 1 | |
245 #define ODT_LISTBOX 2 | |
246 #define ODT_COMBOBOX 3 | |
247 #define ODT_BUTTON 4 | |
248 #define ODT_STATIC 5 | |
249 | |
250 /* Owner draw actions */ | |
251 #define ODA_DRAWENTIRE 0x0001 | |
252 #define ODA_SELECT 0x0002 | |
253 #define ODA_FOCUS 0x0004 | |
254 | |
255 /* Owner draw state */ | |
256 #define ODS_SELECTED 0x0001 | |
257 #define ODS_GRAYED 0x0002 | |
258 #define ODS_DISABLED 0x0004 | |
259 #define ODS_CHECKED 0x0008 | |
260 #define ODS_FOCUS 0x0010 | |
261 #define ODS_COMBOBOXEDIT 0x1000 | |
262 #define ODS_HOTLIGHT 0x0040 | |
263 #define ODS_INACTIVE 0x0080 | |
264 | |
265 /* Edit control styles */ | |
266 #define ES_LEFT 0x00000000 | |
267 #define ES_CENTER 0x00000001 | |
268 #define ES_RIGHT 0x00000002 | |
269 #define ES_MULTILINE 0x00000004 | |
270 #define ES_UPPERCASE 0x00000008 | |
271 #define ES_LOWERCASE 0x00000010 | |
272 #define ES_PASSWORD 0x00000020 | |
273 #define ES_AUTOVSCROLL 0x00000040 | |
274 #define ES_AUTOHSCROLL 0x00000080 | |
275 #define ES_NOHIDESEL 0x00000100 | |
276 #define ES_OEMCONVERT 0x00000400 | |
277 #define ES_READONLY 0x00000800 | |
278 #define ES_WANTRETURN 0x00001000 | |
279 #define ES_NUMBER 0x00002000 | |
280 | |
281 /* OEM Resource Ordinal Numbers */ | |
282 #define OBM_CLOSED 32731 | |
283 #define OBM_RADIOCHECK 32732 | |
284 #define OBM_TRTYPE 32733 | |
285 #define OBM_LFARROWI 32734 | |
286 #define OBM_RGARROWI 32735 | |
287 #define OBM_DNARROWI 32736 | |
288 #define OBM_UPARROWI 32737 | |
289 #define OBM_COMBO 32738 | |
290 #define OBM_MNARROW 32739 | |
291 #define OBM_LFARROWD 32740 | |
292 #define OBM_RGARROWD 32741 | |
293 #define OBM_DNARROWD 32742 | |
294 #define OBM_UPARROWD 32743 | |
295 #define OBM_RESTORED 32744 | |
296 #define OBM_ZOOMD 32745 | |
297 #define OBM_REDUCED 32746 | |
298 #define OBM_RESTORE 32747 | |
299 #define OBM_ZOOM 32748 | |
300 #define OBM_REDUCE 32749 | |
301 #define OBM_LFARROW 32750 | |
302 #define OBM_RGARROW 32751 | |
303 #define OBM_DNARROW 32752 | |
304 #define OBM_UPARROW 32753 | |
305 #define OBM_CLOSE 32754 | |
306 #define OBM_OLD_RESTORE 32755 | |
307 #define OBM_OLD_ZOOM 32756 | |
308 #define OBM_OLD_REDUCE 32757 | |
309 #define OBM_BTNCORNERS 32758 | |
310 #define OBM_CHECKBOXES 32759 | |
311 #define OBM_CHECK 32760 | |
312 #define OBM_BTSIZE 32761 | |
313 #define OBM_OLD_LFARROW 32762 | |
314 #define OBM_OLD_RGARROW 32763 | |
315 #define OBM_OLD_DNARROW 32764 | |
316 #define OBM_OLD_UPARROW 32765 | |
317 #define OBM_SIZE 32766 | |
318 #define OBM_OLD_CLOSE 32767 | |
319 | |
320 #define OCR_BUMMER 100 | |
321 #define OCR_DRAGOBJECT 101 | |
322 | |
323 #define OCR_NORMAL 32512 | |
324 #define OCR_IBEAM 32513 | |
325 #define OCR_WAIT 32514 | |
326 #define OCR_CROSS 32515 | |
327 #define OCR_UP 32516 | |
328 #define OCR_SIZE 32640 | |
329 #define OCR_ICON 32641 | |
330 #define OCR_SIZENWSE 32642 | |
331 #define OCR_SIZENESW 32643 | |
332 #define OCR_SIZEWE 32644 | |
333 #define OCR_SIZENS 32645 | |
334 #define OCR_SIZEALL 32646 | |
335 #define OCR_ICOCUR 32647 | |
336 #define OCR_NO 32648 | |
337 #define OCR_APPSTARTING 32650 | |
338 #define OCR_HELP 32651 /* only defined in wine */ | |
339 | |
340 #define OIC_SAMPLE 32512 | |
341 #define OIC_HAND 32513 | |
342 #define OIC_QUES 32514 | |
343 #define OIC_BANG 32515 | |
344 #define OIC_NOTE 32516 | |
345 #define OIC_PORTRAIT 32517 | |
346 #define OIC_LANDSCAPE 32518 | |
347 #define OIC_WINEICON 32519 | |
348 #define OIC_FOLDER 32520 | |
349 #define OIC_FOLDER2 32521 | |
350 #define OIC_FLOPPY 32522 | |
351 #define OIC_CDROM 32523 | |
352 #define OIC_HDISK 32524 | |
353 #define OIC_NETWORK 32525 | |
354 | |
355 #define COLOR_SCROLLBAR 0 | |
356 #define COLOR_BACKGROUND 1 | |
357 #define COLOR_ACTIVECAPTION 2 | |
358 #define COLOR_INACTIVECAPTION 3 | |
359 #define COLOR_MENU 4 | |
360 #define COLOR_WINDOW 5 | |
361 #define COLOR_WINDOWFRAME 6 | |
362 #define COLOR_MENUTEXT 7 | |
363 #define COLOR_WINDOWTEXT 8 | |
364 #define COLOR_CAPTIONTEXT 9 | |
365 #define COLOR_ACTIVEBORDER 10 | |
366 #define COLOR_INACTIVEBORDER 11 | |
367 #define COLOR_APPWORKSPACE 12 | |
368 #define COLOR_HIGHLIGHT 13 | |
369 #define COLOR_HIGHLIGHTTEXT 14 | |
370 #define COLOR_BTNFACE 15 | |
371 #define COLOR_BTNSHADOW 16 | |
372 #define COLOR_GRAYTEXT 17 | |
373 #define COLOR_BTNTEXT 18 | |
374 #define COLOR_INACTIVECAPTIONTEXT 19 | |
375 #define COLOR_BTNHIGHLIGHT 20 | |
376 /* win95 colors */ | |
377 #define COLOR_3DDKSHADOW 21 | |
378 #define COLOR_3DLIGHT 22 | |
379 #define COLOR_INFOTEXT 23 | |
380 #define COLOR_INFOBK 24 | |
381 #define COLOR_DESKTOP COLOR_BACKGROUND | |
382 #define COLOR_3DFACE COLOR_BTNFACE | |
383 #define COLOR_3DSHADOW COLOR_BTNSHADOW | |
384 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT | |
385 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT | |
386 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT | |
387 /* win98 colors */ | |
388 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */ | |
389 #define COLOR_HOTLIGHT 26 | |
390 #define COLOR_GRADIENTACTIVECAPTION 27 | |
391 #define COLOR_GRADIENTINACTIVECAPTION 28 | |
392 | |
393 /* WM_CTLCOLOR values */ | |
394 #define CTLCOLOR_MSGBOX 0 | |
395 #define CTLCOLOR_EDIT 1 | |
396 #define CTLCOLOR_LISTBOX 2 | |
397 #define CTLCOLOR_BTN 3 | |
398 #define CTLCOLOR_DLG 4 | |
399 #define CTLCOLOR_SCROLLBAR 5 | |
400 #define CTLCOLOR_STATIC 6 | |
401 | |
402 /* Edit control messages */ | |
403 #define EM_GETSEL 0x00b0 | |
404 #define EM_SETSEL 0x00b1 | |
405 #define EM_GETRECT 0x00b2 | |
406 #define EM_SETRECT 0x00b3 | |
407 #define EM_SETRECTNP 0x00b4 | |
408 #define EM_SCROLL 0x00b5 | |
409 #define EM_LINESCROLL 0x00b6 | |
410 #define EM_SCROLLCARET 0x00b7 | |
411 #define EM_GETMODIFY 0x00b8 | |
412 #define EM_SETMODIFY 0x00b9 | |
413 #define EM_GETLINECOUNT 0x00ba | |
414 #define EM_LINEINDEX 0x00bb | |
415 #define EM_SETHANDLE 0x00bc | |
416 #define EM_GETHANDLE 0x00bd | |
417 #define EM_GETTHUMB 0x00be | |
418 /* FIXME : missing from specs 0x00bf and 0x00c0 */ | |
419 #define EM_LINELENGTH 0x00c1 | |
420 #define EM_REPLACESEL 0x00c2 | |
421 /* FIXME : missing from specs 0x00c3 */ | |
422 #define EM_GETLINE 0x00c4 | |
423 #define EM_LIMITTEXT 0x00c5 | |
424 #define EM_CANUNDO 0x00c6 | |
425 #define EM_UNDO 0x00c7 | |
426 #define EM_FMTLINES 0x00c8 | |
427 #define EM_LINEFROMCHAR 0x00c9 | |
428 /* FIXME : missing from specs 0x00ca */ | |
429 #define EM_SETTABSTOPS 0x00cb | |
430 #define EM_SETPASSWORDCHAR 0x00cc | |
431 #define EM_EMPTYUNDOBUFFER 0x00cd | |
432 #define EM_GETFIRSTVISIBLELINE 0x00ce | |
433 #define EM_SETREADONLY 0x00cf | |
434 #define EM_SETWORDBREAKPROC 0x00d0 | |
435 #define EM_GETWORDBREAKPROC 0x00d1 | |
436 #define EM_GETPASSWORDCHAR 0x00d2 | |
437 #define EM_SETMARGINS 0x00d3 | |
438 #define EM_GETMARGINS 0x00d4 | |
439 #define EM_GETLIMITTEXT 0x00d5 | |
440 #define EM_POSFROMCHAR 0x00d6 | |
441 #define EM_CHARFROMPOS 0x00d7 | |
442 /* a name change since win95 */ | |
443 #define EM_SETLIMITTEXT EM_LIMITTEXT | |
444 | |
445 /* EDITWORDBREAKPROC code values */ | |
446 #define WB_LEFT 0 | |
447 #define WB_RIGHT 1 | |
448 #define WB_ISDELIMITER 2 | |
449 | |
450 /* Edit control notification codes */ | |
451 #define EN_SETFOCUS 0x0100 | |
452 #define EN_KILLFOCUS 0x0200 | |
453 #define EN_CHANGE 0x0300 | |
454 #define EN_UPDATE 0x0400 | |
455 #define EN_ERRSPACE 0x0500 | |
456 #define EN_MAXTEXT 0x0501 | |
457 #define EN_HSCROLL 0x0601 | |
458 #define EN_VSCROLL 0x0602 | |
459 | |
460 /* New since win95 : EM_SETMARGIN parameters */ | |
461 #define EC_LEFTMARGIN 0x0001 | |
462 #define EC_RIGHTMARGIN 0x0002 | |
463 #define EC_USEFONTINFO 0xffff | |
464 | |
465 | |
466 /* Messages */ | |
467 | |
468 /* WM_GETDLGCODE values */ | |
469 | |
470 | |
471 #define WM_NULL 0x0000 | |
472 #define WM_CREATE 0x0001 | |
473 #define WM_DESTROY 0x0002 | |
474 #define WM_MOVE 0x0003 | |
475 #define WM_SIZEWAIT 0x0004 | |
476 #define WM_SIZE 0x0005 | |
477 #define WM_ACTIVATE 0x0006 | |
478 #define WM_SETFOCUS 0x0007 | |
479 #define WM_KILLFOCUS 0x0008 | |
480 #define WM_SETVISIBLE 0x0009 | |
481 #define WM_ENABLE 0x000a | |
482 #define WM_SETREDRAW 0x000b | |
483 #define WM_SETTEXT 0x000c | |
484 #define WM_GETTEXT 0x000d | |
485 #define WM_GETTEXTLENGTH 0x000e | |
486 #define WM_PAINT 0x000f | |
487 #define WM_CLOSE 0x0010 | |
488 #define WM_QUERYENDSESSION 0x0011 | |
489 #define WM_QUIT 0x0012 | |
490 #define WM_QUERYOPEN 0x0013 | |
491 #define WM_ERASEBKGND 0x0014 | |
492 #define WM_SYSCOLORCHANGE 0x0015 | |
493 #define WM_ENDSESSION 0x0016 | |
494 #define WM_SYSTEMERROR 0x0017 | |
495 #define WM_SHOWWINDOW 0x0018 | |
496 #define WM_CTLCOLOR 0x0019 | |
497 #define WM_WININICHANGE 0x001a | |
498 #define WM_SETTINGCHANGE WM_WININICHANGE | |
499 #define WM_DEVMODECHANGE 0x001b | |
500 #define WM_ACTIVATEAPP 0x001c | |
501 #define WM_FONTCHANGE 0x001d | |
502 #define WM_TIMECHANGE 0x001e | |
503 #define WM_CANCELMODE 0x001f | |
504 #define WM_SETCURSOR 0x0020 | |
505 #define WM_MOUSEACTIVATE 0x0021 | |
506 #define WM_CHILDACTIVATE 0x0022 | |
507 #define WM_QUEUESYNC 0x0023 | |
508 #define WM_GETMINMAXINFO 0x0024 | |
509 | |
510 #define WM_PAINTICON 0x0026 | |
511 #define WM_ICONERASEBKGND 0x0027 | |
512 #define WM_NEXTDLGCTL 0x0028 | |
513 #define WM_ALTTABACTIVE 0x0029 | |
514 #define WM_SPOOLERSTATUS 0x002a | |
515 #define WM_DRAWITEM 0x002b | |
516 #define WM_MEASUREITEM 0x002c | |
517 #define WM_DELETEITEM 0x002d | |
518 #define WM_VKEYTOITEM 0x002e | |
519 #define WM_CHARTOITEM 0x002f | |
520 #define WM_SETFONT 0x0030 | |
521 #define WM_GETFONT 0x0031 | |
522 #define WM_SETHOTKEY 0x0032 | |
523 #define WM_GETHOTKEY 0x0033 | |
524 #define WM_FILESYSCHANGE 0x0034 | |
525 #define WM_ISACTIVEICON 0x0035 | |
526 #define WM_QUERYPARKICON 0x0036 | |
527 #define WM_QUERYDRAGICON 0x0037 | |
528 #define WM_QUERYSAVESTATE 0x0038 | |
529 #define WM_COMPAREITEM 0x0039 | |
530 #define WM_TESTING 0x003a | |
531 | |
532 #define WM_OTHERWINDOWCREATED 0x003c | |
533 #define WM_OTHERWINDOWDESTROYED 0x003d | |
534 #define WM_ACTIVATESHELLWINDOW 0x003e | |
535 | |
536 #define WM_COMPACTING 0x0041 | |
537 | |
538 #define WM_COMMNOTIFY 0x0044 | |
539 #define WM_WINDOWPOSCHANGING 0x0046 | |
540 #define WM_WINDOWPOSCHANGED 0x0047 | |
541 #define WM_POWER 0x0048 | |
542 | |
543 /* Win32 4.0 messages */ | |
544 #define WM_COPYDATA 0x004a | |
545 #define WM_CANCELJOURNAL 0x004b | |
546 #define WM_NOTIFY 0x004e | |
547 #define WM_HELP 0x0053 | |
548 #define WM_NOTIFYFORMAT 0x0055 | |
549 | |
550 #define WM_CONTEXTMENU 0x007b | |
551 #define WM_STYLECHANGING 0x007c | |
552 #define WM_STYLECHANGED 0x007d | |
553 #define WM_DISPLAYCHANGE 0x007e | |
554 #define WM_GETICON 0x007f | |
555 #define WM_SETICON 0x0080 | |
556 | |
557 /* Non-client system messages */ | |
558 #define WM_NCCREATE 0x0081 | |
559 #define WM_NCDESTROY 0x0082 | |
560 #define WM_NCCALCSIZE 0x0083 | |
561 #define WM_NCHITTEST 0x0084 | |
562 #define WM_NCPAINT 0x0085 | |
563 #define WM_NCACTIVATE 0x0086 | |
564 | |
565 #define WM_GETDLGCODE 0x0087 | |
566 #define WM_SYNCPAINT 0x0088 | |
567 #define WM_SYNCTASK 0x0089 | |
568 | |
569 /* Non-client mouse messages */ | |
570 #define WM_NCMOUSEMOVE 0x00a0 | |
571 #define WM_NCLBUTTONDOWN 0x00a1 | |
572 #define WM_NCLBUTTONUP 0x00a2 | |
573 #define WM_NCLBUTTONDBLCLK 0x00a3 | |
574 #define WM_NCRBUTTONDOWN 0x00a4 | |
575 #define WM_NCRBUTTONUP 0x00a5 | |
576 #define WM_NCRBUTTONDBLCLK 0x00a6 | |
577 #define WM_NCMBUTTONDOWN 0x00a7 | |
578 #define WM_NCMBUTTONUP 0x00a8 | |
579 #define WM_NCMBUTTONDBLCLK 0x00a9 | |
580 | |
581 /* Keyboard messages */ | |
582 #define WM_KEYDOWN 0x0100 | |
583 #define WM_KEYUP 0x0101 | |
584 #define WM_CHAR 0x0102 | |
585 #define WM_DEADCHAR 0x0103 | |
586 #define WM_SYSKEYDOWN 0x0104 | |
587 #define WM_SYSKEYUP 0x0105 | |
588 #define WM_SYSCHAR 0x0106 | |
589 #define WM_SYSDEADCHAR 0x0107 | |
590 #define WM_KEYFIRST WM_KEYDOWN | |
591 #define WM_KEYLAST 0x0108 | |
592 | |
593 /* Win32 4.0 messages for IME */ | |
594 #define WM_IME_STARTCOMPOSITION 0x010d | |
595 #define WM_IME_ENDCOMPOSITION 0x010e | |
596 #define WM_IME_COMPOSITION 0x010f | |
597 #define WM_IME_KEYLAST 0x010f | |
598 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
599 #define WM_INITDIALOG 0x0110 |
1 | 600 #define WM_COMMAND 0x0111 |
601 #define WM_SYSCOMMAND 0x0112 | |
602 #define WM_TIMER 0x0113 | |
603 #define WM_SYSTIMER 0x0118 | |
604 | |
605 /* scroll messages */ | |
606 #define WM_HSCROLL 0x0114 | |
607 #define WM_VSCROLL 0x0115 | |
608 | |
609 /* Menu messages */ | |
610 #define WM_INITMENU 0x0116 | |
611 #define WM_INITMENUPOPUP 0x0117 | |
612 | |
613 #define WM_MENUSELECT 0x011F | |
614 #define WM_MENUCHAR 0x0120 | |
615 #define WM_ENTERIDLE 0x0121 | |
616 | |
617 #define WM_LBTRACKPOINT 0x0131 | |
618 | |
619 /* Win32 CTLCOLOR messages */ | |
620 #define WM_CTLCOLORMSGBOX 0x0132 | |
621 #define WM_CTLCOLOREDIT 0x0133 | |
622 #define WM_CTLCOLORLISTBOX 0x0134 | |
623 #define WM_CTLCOLORBTN 0x0135 | |
624 #define WM_CTLCOLORDLG 0x0136 | |
625 #define WM_CTLCOLORSCROLLBAR 0x0137 | |
626 #define WM_CTLCOLORSTATIC 0x0138 | |
627 | |
628 /* Mouse messages */ | |
629 #define WM_MOUSEMOVE 0x0200 | |
630 #define WM_LBUTTONDOWN 0x0201 | |
631 #define WM_LBUTTONUP 0x0202 | |
632 #define WM_LBUTTONDBLCLK 0x0203 | |
633 #define WM_RBUTTONDOWN 0x0204 | |
634 #define WM_RBUTTONUP 0x0205 | |
635 #define WM_RBUTTONDBLCLK 0x0206 | |
636 #define WM_MBUTTONDOWN 0x0207 | |
637 #define WM_MBUTTONUP 0x0208 | |
638 #define WM_MBUTTONDBLCLK 0x0209 | |
639 #define WM_MOUSEWHEEL 0x020A | |
640 #define WM_MOUSEFIRST WM_MOUSEMOVE | |
641 | |
642 | |
643 #define WM_MOUSELAST WM_MOUSEWHEEL | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
644 |
1 | 645 #define WHEEL_DELTA 120 |
646 #define WHEEL_PAGESCROLL (UINT_MAX) | |
647 #define WM_PARENTNOTIFY 0x0210 | |
648 #define WM_ENTERMENULOOP 0x0211 | |
649 #define WM_EXITMENULOOP 0x0212 | |
650 #define WM_NEXTMENU 0x0213 | |
651 | |
652 /* Win32 4.0 messages */ | |
653 #define WM_SIZING 0x0214 | |
654 #define WM_CAPTURECHANGED 0x0215 | |
655 #define WM_MOVING 0x0216 | |
656 | |
657 /* MDI messages */ | |
658 #define WM_MDICREATE 0x0220 | |
659 #define WM_MDIDESTROY 0x0221 | |
660 #define WM_MDIACTIVATE 0x0222 | |
661 #define WM_MDIRESTORE 0x0223 | |
662 #define WM_MDINEXT 0x0224 | |
663 #define WM_MDIMAXIMIZE 0x0225 | |
664 #define WM_MDITILE 0x0226 | |
665 #define WM_MDICASCADE 0x0227 | |
666 #define WM_MDIICONARRANGE 0x0228 | |
667 #define WM_MDIGETACTIVE 0x0229 | |
668 #define WM_MDIREFRESHMENU 0x0234 | |
669 | |
670 /* D&D messages */ | |
671 #define WM_DROPOBJECT 0x022A | |
672 #define WM_QUERYDROPOBJECT 0x022B | |
673 #define WM_BEGINDRAG 0x022C | |
674 #define WM_DRAGLOOP 0x022D | |
675 #define WM_DRAGSELECT 0x022E | |
676 #define WM_DRAGMOVE 0x022F | |
677 #define WM_MDISETMENU 0x0230 | |
678 | |
679 #define WM_ENTERSIZEMOVE 0x0231 | |
680 #define WM_EXITSIZEMOVE 0x0232 | |
681 #define WM_DROPFILES 0x0233 | |
682 | |
683 | |
684 /* Win32 4.0 messages for IME */ | |
685 #define WM_IME_SETCONTEXT 0x0281 | |
686 #define WM_IME_NOTIFY 0x0282 | |
687 #define WM_IME_CONTROL 0x0283 | |
688 #define WM_IME_COMPOSITIONFULL 0x0284 | |
689 #define WM_IME_SELECT 0x0285 | |
690 #define WM_IME_CHAR 0x0286 | |
691 /* Win32 5.0 messages for IME */ | |
692 #define WM_IME_REQUEST 0x0288 | |
693 | |
694 /* Win32 4.0 messages for IME */ | |
695 #define WM_IME_KEYDOWN 0x0290 | |
696 #define WM_IME_KEYUP 0x0291 | |
697 | |
698 /* Clipboard command messages */ | |
699 #define WM_CUT 0x0300 | |
700 #define WM_COPY 0x0301 | |
701 #define WM_PASTE 0x0302 | |
702 #define WM_CLEAR 0x0303 | |
703 #define WM_UNDO 0x0304 | |
704 | |
705 /* Clipboard owner messages */ | |
706 #define WM_RENDERFORMAT 0x0305 | |
707 #define WM_RENDERALLFORMATS 0x0306 | |
708 #define WM_DESTROYCLIPBOARD 0x0307 | |
709 | |
710 /* Clipboard viewer messages */ | |
711 #define WM_DRAWCLIPBOARD 0x0308 | |
712 #define WM_PAINTCLIPBOARD 0x0309 | |
713 #define WM_VSCROLLCLIPBOARD 0x030A | |
714 #define WM_SIZECLIPBOARD 0x030B | |
715 #define WM_ASKCBFORMATNAME 0x030C | |
716 #define WM_CHANGECBCHAIN 0x030D | |
717 #define WM_HSCROLLCLIPBOARD 0x030E | |
718 | |
719 #define WM_QUERYNEWPALETTE 0x030F | |
720 #define WM_PALETTEISCHANGING 0x0310 | |
721 #define WM_PALETTECHANGED 0x0311 | |
722 #define WM_HOTKEY 0x0312 | |
723 | |
724 #define WM_PRINT 0x0317 | |
725 #define WM_PRINTCLIENT 0x0318 | |
726 | |
727 /* FIXME: This does not belong to any libwine interface header */ | |
728 /* MFC messages [360-38f] */ | |
729 | |
730 #define WM_QUERYAFXWNDPROC 0x0360 | |
731 #define WM_SIZEPARENT 0x0361 | |
732 #define WM_SETMESSAGESTRING 0x0362 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
733 #define WM_IDLEUPDATECMDUI 0x0363 |
1 | 734 #define WM_INITIALUPDATE 0x0364 |
735 #define WM_COMMANDHELP 0x0365 | |
736 #define WM_HELPHITTEST 0x0366 | |
737 #define WM_EXITHELPMODE 0x0367 | |
738 #define WM_RECALCPARENT 0x0368 | |
739 #define WM_SIZECHILD 0x0369 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
740 #define WM_KICKIDLE 0x036A |
1 | 741 #define WM_QUERYCENTERWND 0x036B |
742 #define WM_DISABLEMODAL 0x036C | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
743 #define WM_FLOATSTATUS 0x036D |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
744 #define WM_ACTIVATETOPLEVEL 0x036E |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
745 #define WM_QUERY3DCONTROLS 0x036F |
1 | 746 #define WM_SOCKET_NOTIFY 0x0373 |
747 #define WM_SOCKET_DEAD 0x0374 | |
748 #define WM_POPMESSAGESTRING 0x0375 | |
749 #define WM_OCC_LOADFROMSTREAM 0x0376 | |
750 #define WM_OCC_LOADFROMSTORAGE 0x0377 | |
751 #define WM_OCC_INITNEW 0x0378 | |
752 #define WM_OCC_LOADFROMSTREAM_EX 0x037A | |
753 #define WM_OCC_LOADFROMSTORAGE_EX 0x037B | |
754 #define WM_QUEUE_SENTINEL 0x0379 | |
755 | |
756 #define WM_PENWINFIRST 0x0380 | |
757 #define WM_PENWINLAST 0x038F | |
758 | |
759 /* end of MFC messages */ | |
760 | |
761 /* FIXME: The following two lines do not belong to any libwine interface header */ | |
762 #define WM_COALESCE_FIRST 0x0390 | |
763 #define WM_COALESCE_LAST 0x039F | |
764 | |
765 #define WM_APP 0x8000 | |
766 | |
767 | |
768 #define DLGC_WANTARROWS 0x0001 | |
769 #define DLGC_WANTTAB 0x0002 | |
770 #define DLGC_WANTALLKEYS 0x0004 | |
771 #define DLGC_WANTMESSAGE 0x0004 | |
772 #define DLGC_HASSETSEL 0x0008 | |
773 #define DLGC_DEFPUSHBUTTON 0x0010 | |
774 #define DLGC_UNDEFPUSHBUTTON 0x0020 | |
775 #define DLGC_RADIOBUTTON 0x0040 | |
776 #define DLGC_WANTCHARS 0x0080 | |
777 #define DLGC_STATIC 0x0100 | |
778 #define DLGC_BUTTON 0x2000 | |
779 | |
780 /* Standard dialog button IDs */ | |
781 #define IDOK 1 | |
782 #define IDCANCEL 2 | |
783 #define IDABORT 3 | |
784 #define IDRETRY 4 | |
785 #define IDIGNORE 5 | |
786 #define IDYES 6 | |
787 #define IDNO 7 | |
788 #define IDCLOSE 8 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
789 #define IDHELP 9 |
1 | 790 |
791 /****** Window classes ******/ | |
792 | |
793 typedef struct tagCREATESTRUCTA | |
794 { | |
795 LPVOID lpCreateParams; | |
796 HINSTANCE hInstance; | |
797 HMENU hMenu; | |
798 HWND hwndParent; | |
799 INT cy; | |
800 INT cx; | |
801 INT y; | |
802 INT x; | |
803 LONG style; | |
804 LPCSTR lpszName; | |
805 LPCSTR lpszClass; | |
806 DWORD dwExStyle; | |
807 } CREATESTRUCTA, *LPCREATESTRUCTA; | |
808 | |
809 typedef struct | |
810 { | |
811 LPVOID lpCreateParams; | |
812 HINSTANCE hInstance; | |
813 HMENU hMenu; | |
814 HWND hwndParent; | |
815 INT cy; | |
816 INT cx; | |
817 INT y; | |
818 INT x; | |
819 LONG style; | |
820 LPCWSTR lpszName; | |
821 LPCWSTR lpszClass; | |
822 DWORD dwExStyle; | |
823 } CREATESTRUCTW, *LPCREATESTRUCTW; | |
824 | |
825 DECL_WINELIB_TYPE_AW(CREATESTRUCT) | |
826 DECL_WINELIB_TYPE_AW(LPCREATESTRUCT) | |
827 | |
828 typedef struct | |
829 { | |
830 HDC hdc; | |
831 WIN_BOOL fErase; | |
832 RECT rcPaint; | |
833 WIN_BOOL fRestore; | |
834 WIN_BOOL fIncUpdate; | |
835 BYTE rgbReserved[32]; | |
836 } PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT; | |
837 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
838 typedef struct |
1 | 839 { |
840 HMENU hWindowMenu; | |
841 UINT idFirstChild; | |
842 } CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT; | |
843 | |
844 | |
845 typedef struct | |
846 { | |
847 LPCSTR szClass; | |
848 LPCSTR szTitle; | |
849 HINSTANCE hOwner; | |
850 INT x; | |
851 INT y; | |
852 INT cx; | |
853 INT cy; | |
854 DWORD style; | |
855 LPARAM lParam; | |
856 } MDICREATESTRUCTA, *LPMDICREATESTRUCTA; | |
857 | |
858 typedef struct | |
859 { | |
860 LPCWSTR szClass; | |
861 LPCWSTR szTitle; | |
862 HINSTANCE hOwner; | |
863 INT x; | |
864 INT y; | |
865 INT cx; | |
866 INT cy; | |
867 DWORD style; | |
868 LPARAM lParam; | |
869 } MDICREATESTRUCTW, *LPMDICREATESTRUCTW; | |
870 | |
871 DECL_WINELIB_TYPE_AW(MDICREATESTRUCT) | |
872 DECL_WINELIB_TYPE_AW(LPMDICREATESTRUCT) | |
873 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
874 #define MDITILE_VERTICAL 0x0000 |
1 | 875 #define MDITILE_HORIZONTAL 0x0001 |
876 #define MDITILE_SKIPDISABLED 0x0002 | |
877 | |
878 #define MDIS_ALLCHILDSTYLES 0x0001 | |
879 | |
880 typedef struct { | |
881 DWORD styleOld; | |
882 DWORD styleNew; | |
883 } STYLESTRUCT, *LPSTYLESTRUCT; | |
884 | |
885 /* Offsets for GetWindowLong() and GetWindowWord() */ | |
886 #define GWL_USERDATA (-21) | |
887 #define GWL_EXSTYLE (-20) | |
888 #define GWL_STYLE (-16) | |
889 #define GWW_ID (-12) | |
890 #define GWL_ID GWW_ID | |
891 #define GWW_HWNDPARENT (-8) | |
892 #define GWL_HWNDPARENT GWW_HWNDPARENT | |
893 #define GWW_HINSTANCE (-6) | |
894 #define GWL_HINSTANCE GWW_HINSTANCE | |
895 #define GWL_WNDPROC (-4) | |
896 #define DWL_MSGRESULT 0 | |
897 #define DWL_DLGPROC 4 | |
898 #define DWL_USER 8 | |
899 | |
900 /* GetWindow() constants */ | |
901 #define GW_HWNDFIRST 0 | |
902 #define GW_HWNDLAST 1 | |
903 #define GW_HWNDNEXT 2 | |
904 #define GW_HWNDPREV 3 | |
905 #define GW_OWNER 4 | |
906 #define GW_CHILD 5 | |
907 | |
908 /* WM_GETMINMAXINFO struct */ | |
909 typedef struct | |
910 { | |
911 POINT ptReserved; | |
912 POINT ptMaxSize; | |
913 POINT ptMaxPosition; | |
914 POINT ptMinTrackSize; | |
915 POINT ptMaxTrackSize; | |
916 } MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO; | |
917 | |
918 | |
919 /* RedrawWindow() flags */ | |
920 #define RDW_INVALIDATE 0x0001 | |
921 #define RDW_INTERNALPAINT 0x0002 | |
922 #define RDW_ERASE 0x0004 | |
923 #define RDW_VALIDATE 0x0008 | |
924 #define RDW_NOINTERNALPAINT 0x0010 | |
925 #define RDW_NOERASE 0x0020 | |
926 #define RDW_NOCHILDREN 0x0040 | |
927 #define RDW_ALLCHILDREN 0x0080 | |
928 #define RDW_UPDATENOW 0x0100 | |
929 #define RDW_ERASENOW 0x0200 | |
930 #define RDW_FRAME 0x0400 | |
931 #define RDW_NOFRAME 0x0800 | |
932 | |
933 /* debug flags */ | |
934 #define DBGFILL_ALLOC 0xfd | |
935 #define DBGFILL_FREE 0xfb | |
936 #define DBGFILL_BUFFER 0xf9 | |
937 #define DBGFILL_STACK 0xf7 | |
938 | |
939 /* WM_WINDOWPOSCHANGING/CHANGED struct */ | |
940 typedef struct tagWINDOWPOS | |
941 { | |
942 HWND hwnd; | |
943 HWND hwndInsertAfter; | |
944 INT x; | |
945 INT y; | |
946 INT cx; | |
947 INT cy; | |
948 UINT flags; | |
949 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS; | |
950 | |
951 | |
952 /* WM_MOUSEACTIVATE return values */ | |
953 #define MA_ACTIVATE 1 | |
954 #define MA_ACTIVATEANDEAT 2 | |
955 #define MA_NOACTIVATE 3 | |
956 #define MA_NOACTIVATEANDEAT 4 | |
957 | |
958 /* WM_ACTIVATE wParam values */ | |
959 #define WA_INACTIVE 0 | |
960 #define WA_ACTIVE 1 | |
961 #define WA_CLICKACTIVE 2 | |
962 | |
963 /* WM_GETICON/WM_SETICON params values */ | |
964 #define ICON_SMALL 0 | |
965 #define ICON_BIG 1 | |
966 | |
967 /* WM_NCCALCSIZE parameter structure */ | |
968 typedef struct | |
969 { | |
970 RECT rgrc[3]; | |
971 WINDOWPOS *lppos; | |
972 } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS; | |
973 | |
974 | |
975 /* WM_NCCALCSIZE return flags */ | |
976 #define WVR_ALIGNTOP 0x0010 | |
977 #define WVR_ALIGNLEFT 0x0020 | |
978 #define WVR_ALIGNBOTTOM 0x0040 | |
979 #define WVR_ALIGNRIGHT 0x0080 | |
980 #define WVR_HREDRAW 0x0100 | |
981 #define WVR_VREDRAW 0x0200 | |
982 #define WVR_REDRAW (WVR_HREDRAW | WVR_VREDRAW) | |
983 #define WVR_VALIDRECTS 0x0400 | |
984 | |
985 /* WM_NCHITTEST return codes */ | |
986 #define HTERROR (-2) | |
987 #define HTTRANSPARENT (-1) | |
988 #define HTNOWHERE 0 | |
989 #define HTCLIENT 1 | |
990 #define HTCAPTION 2 | |
991 #define HTSYSMENU 3 | |
992 #define HTSIZE 4 | |
993 #define HTMENU 5 | |
994 #define HTHSCROLL 6 | |
995 #define HTVSCROLL 7 | |
996 #define HTMINBUTTON 8 | |
997 #define HTMAXBUTTON 9 | |
998 #define HTLEFT 10 | |
999 #define HTRIGHT 11 | |
1000 #define HTTOP 12 | |
1001 #define HTTOPLEFT 13 | |
1002 #define HTTOPRIGHT 14 | |
1003 #define HTBOTTOM 15 | |
1004 #define HTBOTTOMLEFT 16 | |
1005 #define HTBOTTOMRIGHT 17 | |
1006 #define HTBORDER 18 | |
1007 #define HTGROWBOX HTSIZE | |
1008 #define HTREDUCE HTMINBUTTON | |
1009 #define HTZOOM HTMAXBUTTON | |
1010 #define HTOBJECT 19 | |
1011 #define HTCLOSE 20 | |
1012 #define HTHELP 21 | |
1013 #define HTSIZEFIRST HTLEFT | |
1014 #define HTSIZELAST HTBOTTOMRIGHT | |
1015 | |
1016 /* WM_SYSCOMMAND parameters */ | |
1017 #ifdef SC_SIZE /* at least HP-UX: already defined in /usr/include/sys/signal.h */ | |
1018 #undef SC_SIZE | |
1019 #endif | |
1020 #define SC_SIZE 0xf000 | |
1021 #define SC_MOVE 0xf010 | |
1022 #define SC_MINIMIZE 0xf020 | |
1023 #define SC_MAXIMIZE 0xf030 | |
1024 #define SC_NEXTWINDOW 0xf040 | |
1025 #define SC_PREVWINDOW 0xf050 | |
1026 #define SC_CLOSE 0xf060 | |
1027 #define SC_VSCROLL 0xf070 | |
1028 #define SC_HSCROLL 0xf080 | |
1029 #define SC_MOUSEMENU 0xf090 | |
1030 #define SC_KEYMENU 0xf100 | |
1031 #define SC_ARRANGE 0xf110 | |
1032 #define SC_RESTORE 0xf120 | |
1033 #define SC_TASKLIST 0xf130 | |
1034 #define SC_SCREENSAVE 0xf140 | |
1035 #define SC_HOTKEY 0xf150 | |
1036 | |
1037 #define CS_VREDRAW 0x0001 | |
1038 #define CS_HREDRAW 0x0002 | |
1039 #define CS_KEYCVTWINDOW 0x0004 | |
1040 #define CS_DBLCLKS 0x0008 | |
1041 #define CS_OWNDC 0x0020 | |
1042 #define CS_CLASSDC 0x0040 | |
1043 #define CS_PARENTDC 0x0080 | |
1044 #define CS_NOKEYCVT 0x0100 | |
1045 #define CS_NOCLOSE 0x0200 | |
1046 #define CS_SAVEBITS 0x0800 | |
1047 #define CS_BYTEALIGNCLIENT 0x1000 | |
1048 #define CS_BYTEALIGNWINDOW 0x2000 | |
1049 #define CS_GLOBALCLASS 0x4000 | |
1050 #define CS_IME 0x00010000 | |
1051 | |
1052 #define PRF_CHECKVISIBLE 0x00000001L | |
1053 #define PRF_NONCLIENT 0x00000002L | |
1054 #define PRF_CLIENT 0x00000004L | |
1055 #define PRF_ERASEBKGND 0x00000008L | |
1056 #define PRF_CHILDREN 0x00000010L | |
1057 #define PRF_OWNED 0x00000020L | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1058 |
1 | 1059 /* Offsets for GetClassLong() and GetClassWord() */ |
1060 #define GCL_MENUNAME (-8) | |
1061 #define GCW_HBRBACKGROUND (-10) | |
1062 #define GCL_HBRBACKGROUND GCW_HBRBACKGROUND | |
1063 #define GCW_HCURSOR (-12) | |
1064 #define GCL_HCURSOR GCW_HCURSOR | |
1065 #define GCW_HICON (-14) | |
1066 #define GCL_HICON GCW_HICON | |
1067 #define GCW_HMODULE (-16) | |
1068 #define GCL_HMODULE GCW_HMODULE | |
1069 #define GCW_CBWNDEXTRA (-18) | |
1070 #define GCL_CBWNDEXTRA GCW_CBWNDEXTRA | |
1071 #define GCW_CBCLSEXTRA (-20) | |
1072 #define GCL_CBCLSEXTRA GCW_CBCLSEXTRA | |
1073 #define GCL_WNDPROC (-24) | |
1074 #define GCW_STYLE (-26) | |
1075 #define GCL_STYLE GCW_STYLE | |
1076 #define GCW_ATOM (-32) | |
1077 #define GCW_HICONSM (-34) | |
1078 #define GCL_HICONSM GCW_HICONSM | |
1079 | |
1080 | |
1081 /***** Window hooks *****/ | |
1082 | |
1083 /* Hook values */ | |
1084 #define WH_MIN (-1) | |
1085 #define WH_MSGFILTER (-1) | |
1086 #define WH_JOURNALRECORD 0 | |
1087 #define WH_JOURNALPLAYBACK 1 | |
1088 #define WH_KEYBOARD 2 | |
1089 #define WH_GETMESSAGE 3 | |
1090 #define WH_CALLWNDPROC 4 | |
1091 #define WH_CBT 5 | |
1092 #define WH_SYSMSGFILTER 6 | |
1093 #define WH_MOUSE 7 | |
1094 #define WH_HARDWARE 8 | |
1095 #define WH_DEBUG 9 | |
1096 #define WH_SHELL 10 | |
1097 #define WH_FOREGROUNDIDLE 11 | |
1098 #define WH_CALLWNDPROCRET 12 | |
1099 #define WH_MAX 12 | |
1100 | |
1101 #define WH_MINHOOK WH_MIN | |
1102 #define WH_MAXHOOK WH_MAX | |
1103 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1) | |
1104 | |
1105 /* Hook action codes */ | |
1106 #define HC_ACTION 0 | |
1107 #define HC_GETNEXT 1 | |
1108 #define HC_SKIP 2 | |
1109 #define HC_NOREMOVE 3 | |
1110 #define HC_NOREM HC_NOREMOVE | |
1111 #define HC_SYSMODALON 4 | |
1112 #define HC_SYSMODALOFF 5 | |
1113 | |
1114 /* CallMsgFilter() values */ | |
1115 #define MSGF_DIALOGBOX 0 | |
1116 #define MSGF_MESSAGEBOX 1 | |
1117 #define MSGF_MENU 2 | |
1118 #define MSGF_MOVE 3 | |
1119 #define MSGF_SIZE 4 | |
1120 #define MSGF_SCROLLBAR 5 | |
1121 #define MSGF_NEXTWINDOW 6 | |
1122 #define MSGF_MAINLOOP 8 | |
1123 #define MSGF_USER 4096 | |
1124 | |
1125 typedef struct | |
1126 { | |
1127 UINT style; | |
1128 WNDPROC lpfnWndProc; | |
1129 INT cbClsExtra; | |
1130 INT cbWndExtra; | |
1131 HINSTANCE hInstance; | |
1132 HICON hIcon; | |
1133 HCURSOR hCursor; | |
1134 HBRUSH hbrBackground; | |
1135 LPCSTR lpszMenuName; | |
1136 LPCSTR lpszClassName; | |
1137 } WNDCLASSA, *LPWNDCLASSA; | |
1138 | |
1139 typedef struct | |
1140 { | |
1141 UINT style; | |
1142 WNDPROC lpfnWndProc; | |
1143 INT cbClsExtra; | |
1144 INT cbWndExtra; | |
1145 HINSTANCE hInstance; | |
1146 HICON hIcon; | |
1147 HCURSOR hCursor; | |
1148 HBRUSH hbrBackground; | |
1149 LPCWSTR lpszMenuName; | |
1150 LPCWSTR lpszClassName; | |
1151 } WNDCLASSW, *LPWNDCLASSW; | |
1152 | |
1153 DECL_WINELIB_TYPE_AW(WNDCLASS) | |
1154 DECL_WINELIB_TYPE_AW(LPWNDCLASS) | |
1155 | |
1156 typedef struct { | |
1157 DWORD dwData; | |
1158 DWORD cbData; | |
1159 LPVOID lpData; | |
1160 } COPYDATASTRUCT, *PCOPYDATASTRUCT, *LPCOPYDATASTRUCT; | |
1161 | |
1162 typedef struct { | |
1163 HMENU hmenuIn; | |
1164 HMENU hmenuNext; | |
1165 HWND hwndNext; | |
1166 } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU; | |
1167 | |
1168 /* WinHelp internal structure */ | |
1169 typedef struct { | |
1170 WORD size; | |
1171 WORD command; | |
1172 LONG data; | |
1173 LONG reserved; | |
1174 WORD ofsFilename; | |
1175 WORD ofsData; | |
1176 } WINHELP,*LPWINHELP; | |
1177 | |
1178 typedef struct | |
1179 { | |
1180 UINT16 mkSize; | |
1181 BYTE mkKeyList; | |
1182 BYTE szKeyphrase[1]; | |
1183 } MULTIKEYHELP, *LPMULTIKEYHELP; | |
1184 | |
1185 typedef struct { | |
1186 WORD wStructSize; | |
1187 WORD x; | |
1188 WORD y; | |
1189 WORD dx; | |
1190 WORD dy; | |
1191 WORD wMax; | |
1192 char rgchMember[2]; | |
1193 } HELPWININFO, *LPHELPWININFO; | |
1194 | |
1195 #define HELP_CONTEXT 0x0001 | |
1196 #define HELP_QUIT 0x0002 | |
1197 #define HELP_INDEX 0x0003 | |
1198 #define HELP_CONTENTS 0x0003 | |
1199 #define HELP_HELPONHELP 0x0004 | |
1200 #define HELP_SETINDEX 0x0005 | |
1201 #define HELP_SETCONTENTS 0x0005 | |
1202 #define HELP_CONTEXTPOPUP 0x0008 | |
1203 #define HELP_FORCEFILE 0x0009 | |
1204 #define HELP_KEY 0x0101 | |
1205 #define HELP_COMMAND 0x0102 | |
1206 #define HELP_PARTIALKEY 0x0105 | |
1207 #define HELP_MULTIKEY 0x0201 | |
1208 #define HELP_SETWINPOS 0x0203 | |
1209 #define HELP_CONTEXTMENU 0x000a | |
1210 #define HELP_FINDER 0x000b | |
1211 #define HELP_WM_HELP 0x000c | |
1212 #define HELP_SETPOPUP_POS 0x000d | |
1213 | |
1214 #define HELP_TCARD 0x8000 | |
1215 #define HELP_TCARD_DATA 0x0010 | |
1216 #define HELP_TCARD_OTHER_CALLER 0x0011 | |
1217 | |
1218 | |
1219 /* ChangeDisplaySettings return codes */ | |
1220 | |
1221 #define DISP_CHANGE_SUCCESSFUL 0 | |
1222 #define DISP_CHANGE_RESTART 1 | |
1223 #define DISP_CHANGE_FAILED (-1) | |
1224 #define DISP_CHANGE_BADMODE (-2) | |
1225 #define DISP_CHANGE_NOTUPDATED (-3) | |
1226 #define DISP_CHANGE_BADFLAGS (-4) | |
1227 #define DISP_CHANGE_BADPARAM (-5) | |
1228 | |
1229 /* ChangeDisplaySettings.dwFlags */ | |
1230 #define CDS_UPDATEREGISTRY 0x00000001 | |
1231 #define CDS_TEST 0x00000002 | |
1232 #define CDS_FULLSCREEN 0x00000004 | |
1233 #define CDS_GLOBAL 0x00000008 | |
1234 #define CDS_SET_PRIMARY 0x00000010 | |
1235 #define CDS_RESET 0x40000000 | |
1236 #define CDS_SETRECT 0x20000000 | |
1237 #define CDS_NORESET 0x10000000 | |
1238 | |
1239 /* flags to FormatMessage */ | |
1240 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100 | |
1241 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200 | |
1242 #define FORMAT_MESSAGE_FROM_STRING 0x00000400 | |
1243 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800 | |
1244 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000 | |
1245 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000 | |
1246 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF | |
1247 | |
1248 typedef struct | |
1249 { | |
1250 UINT cbSize; | |
1251 UINT style; | |
1252 WNDPROC lpfnWndProc; | |
1253 INT cbClsExtra; | |
1254 INT cbWndExtra; | |
1255 HINSTANCE hInstance; | |
1256 HICON hIcon; | |
1257 HCURSOR hCursor; | |
1258 HBRUSH hbrBackground; | |
1259 LPCSTR lpszMenuName; | |
1260 LPCSTR lpszClassName; | |
1261 HICON hIconSm; | |
1262 } WNDCLASSEXA, *LPWNDCLASSEXA; | |
1263 | |
1264 typedef struct | |
1265 { | |
1266 UINT cbSize; | |
1267 UINT style; | |
1268 WNDPROC lpfnWndProc; | |
1269 INT cbClsExtra; | |
1270 INT cbWndExtra; | |
1271 HINSTANCE hInstance; | |
1272 HICON hIcon; | |
1273 HCURSOR hCursor; | |
1274 HBRUSH hbrBackground; | |
1275 LPCWSTR lpszMenuName; | |
1276 LPCWSTR lpszClassName; | |
1277 HICON hIconSm; | |
1278 } WNDCLASSEXW, *LPWNDCLASSEXW; | |
1279 | |
1280 DECL_WINELIB_TYPE_AW(WNDCLASSEX) | |
1281 DECL_WINELIB_TYPE_AW(LPWNDCLASSEX) | |
1282 | |
1283 typedef struct tagMSG | |
1284 { | |
1285 HWND hwnd; | |
1286 UINT message; | |
1287 WPARAM wParam; | |
1288 LPARAM lParam; | |
1289 DWORD time; | |
1290 POINT pt; | |
1291 } MSG, *LPMSG; | |
1292 | |
1293 #define POINTSTOPOINT(pt, pts) \ | |
1294 { (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \ | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1295 (pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); } |
1 | 1296 |
1297 #define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y))) | |
1298 | |
1299 | |
1300 /* Cursors / Icons */ | |
1301 | |
1302 typedef struct { | |
1303 WIN_BOOL fIcon; | |
1304 DWORD xHotspot; | |
1305 DWORD yHotspot; | |
1306 HBITMAP hbmMask; | |
1307 HBITMAP hbmColor; | |
1308 } ICONINFO,*LPICONINFO; | |
1309 | |
1310 | |
1311 /* this is the 6 byte accel struct used in Win32 when presented to the user */ | |
1312 typedef struct | |
1313 { | |
1314 BYTE fVirt; | |
1315 BYTE pad0; | |
1316 WORD key; | |
1317 WORD cmd; | |
1318 } ACCEL, *LPACCEL; | |
1319 | |
1320 /* this is the 8 byte accel struct used in Win32 resources (internal only) */ | |
1321 typedef struct | |
1322 { | |
1323 BYTE fVirt; | |
1324 BYTE pad0; | |
1325 WORD key; | |
1326 WORD cmd; | |
1327 WORD pad1; | |
1328 } PE_ACCEL, *LPPE_ACCEL; | |
1329 | |
1330 | |
1331 /* Flags for TrackPopupMenu */ | |
1332 #define TPM_LEFTBUTTON 0x0000 | |
1333 #define TPM_RIGHTBUTTON 0x0002 | |
1334 #define TPM_LEFTALIGN 0x0000 | |
1335 #define TPM_CENTERALIGN 0x0004 | |
1336 #define TPM_RIGHTALIGN 0x0008 | |
1337 #define TPM_TOPALIGN 0x0000 | |
1338 #define TPM_VCENTERALIGN 0x0010 | |
1339 #define TPM_BOTTOMALIGN 0x0020 | |
1340 #define TPM_HORIZONTAL 0x0000 | |
1341 #define TPM_VERTICAL 0x0040 | |
1342 #define TPM_NONOTIFY 0x0080 | |
1343 #define TPM_RETURNCMD 0x0100 | |
1344 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1345 typedef struct |
1 | 1346 { |
1347 UINT cbSize; | |
1348 RECT rcExclude; | |
1349 } TPMPARAMS, *LPTPMPARAMS; | |
1350 | |
1351 /* FIXME: not sure this one is correct */ | |
1352 typedef struct { | |
1353 UINT cbSize; | |
1354 UINT fMask; | |
1355 UINT fType; | |
1356 UINT fState; | |
1357 UINT wID; | |
1358 HMENU hSubMenu; | |
1359 HBITMAP hbmpChecked; | |
1360 HBITMAP hbmpUnchecked; | |
1361 DWORD dwItemData; | |
1362 LPSTR dwTypeData; | |
1363 UINT cch; | |
1364 HBITMAP hbmpItem; | |
1365 } MENUITEMINFOA, *LPMENUITEMINFOA; | |
1366 | |
1367 typedef struct { | |
1368 UINT cbSize; | |
1369 UINT fMask; | |
1370 UINT fType; | |
1371 UINT fState; | |
1372 UINT wID; | |
1373 HMENU hSubMenu; | |
1374 HBITMAP hbmpChecked; | |
1375 HBITMAP hbmpUnchecked; | |
1376 DWORD dwItemData; | |
1377 LPWSTR dwTypeData; | |
1378 UINT cch; | |
1379 HBITMAP hbmpItem; | |
1380 } MENUITEMINFOW, *LPMENUITEMINFOW; | |
1381 | |
1382 DECL_WINELIB_TYPE_AW(MENUITEMINFO) | |
1383 DECL_WINELIB_TYPE_AW(LPMENUITEMINFO) | |
1384 | |
1385 typedef struct { | |
1386 DWORD cbSize; | |
1387 DWORD fMask; | |
1388 DWORD dwStyle; | |
1389 UINT cyMax; | |
1390 HBRUSH hbrBack; | |
1391 DWORD dwContextHelpID; | |
1392 DWORD dwMenuData; | |
1393 } MENUINFO, *LPMENUINFO; | |
1394 | |
1395 typedef MENUINFO const * LPCMENUINFO; | |
1396 | |
1397 #define MIM_MAXHEIGHT 0x00000001 | |
1398 #define MIM_BACKGROUND 0x00000002 | |
1399 #define MIM_HELPID 0x00000004 | |
1400 #define MIM_MENUDATA 0x00000008 | |
1401 #define MIM_STYLE 0x00000010 | |
1402 #define MIM_APPLYTOSUBMENUS 0x80000000 | |
1403 | |
1404 typedef struct { | |
1405 WORD versionNumber; | |
1406 WORD offset; | |
1407 } MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER; | |
1408 | |
1409 | |
1410 typedef struct { | |
1411 WORD mtOption; | |
1412 WORD mtID; | |
1413 WCHAR mtString[1]; | |
1414 } MENUITEMTEMPLATE, *PMENUITEMTEMPLATE; | |
1415 | |
1416 | |
1417 typedef VOID MENUTEMPLATE; | |
1418 typedef PVOID *LPMENUTEMPLATE; | |
1419 | |
1420 /* Field specifiers for MENUITEMINFO[AW] type. */ | |
1421 #define MIIM_STATE 0x00000001 | |
1422 #define MIIM_ID 0x00000002 | |
1423 #define MIIM_SUBMENU 0x00000004 | |
1424 #define MIIM_CHECKMARKS 0x00000008 | |
1425 #define MIIM_TYPE 0x00000010 | |
1426 #define MIIM_DATA 0x00000020 | |
1427 #define MIIM_STRING 0x00000040 | |
1428 #define MIIM_BITMAP 0x00000080 | |
1429 #define MIIM_FTYPE 0x00000100 | |
1430 | |
1431 #define HBMMENU_CALLBACK ((HBITMAP) -1) | |
1432 #define HBMMENU_SYSTEM ((HBITMAP) 1) | |
1433 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2) | |
1434 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3) | |
1435 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5) | |
1436 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6) | |
1437 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7) | |
1438 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8) | |
1439 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9) | |
1440 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10) | |
1441 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11) | |
1442 | |
1443 /* DrawState defines ... */ | |
1444 typedef WIN_BOOL CALLBACK (*DRAWSTATEPROC)(HDC,LPARAM,WPARAM,INT,INT); | |
1445 | |
1446 /* WM_H/VSCROLL commands */ | |
1447 #define SB_LINEUP 0 | |
1448 #define SB_LINELEFT 0 | |
1449 #define SB_LINEDOWN 1 | |
1450 #define SB_LINERIGHT 1 | |
1451 #define SB_PAGEUP 2 | |
1452 #define SB_PAGELEFT 2 | |
1453 #define SB_PAGEDOWN 3 | |
1454 #define SB_PAGERIGHT 3 | |
1455 #define SB_THUMBPOSITION 4 | |
1456 #define SB_THUMBTRACK 5 | |
1457 #define SB_TOP 6 | |
1458 #define SB_LEFT 6 | |
1459 #define SB_BOTTOM 7 | |
1460 #define SB_RIGHT 7 | |
1461 #define SB_ENDSCROLL 8 | |
1462 | |
1463 /* Scroll bar selection constants */ | |
1464 #define SB_HORZ 0 | |
1465 #define SB_VERT 1 | |
1466 #define SB_CTL 2 | |
1467 #define SB_BOTH 3 | |
1468 | |
1469 /* Scrollbar styles */ | |
1470 #define SBS_HORZ 0x0000L | |
1471 #define SBS_VERT 0x0001L | |
1472 #define SBS_TOPALIGN 0x0002L | |
1473 #define SBS_LEFTALIGN 0x0002L | |
1474 #define SBS_BOTTOMALIGN 0x0004L | |
1475 #define SBS_RIGHTALIGN 0x0004L | |
1476 #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L | |
1477 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L | |
1478 #define SBS_SIZEBOX 0x0008L | |
1479 #define SBS_SIZEGRIP 0x0010L | |
1480 | |
1481 /* EnableScrollBar() flags */ | |
1482 #define ESB_ENABLE_BOTH 0x0000 | |
1483 #define ESB_DISABLE_BOTH 0x0003 | |
1484 | |
1485 #define ESB_DISABLE_LEFT 0x0001 | |
1486 #define ESB_DISABLE_RIGHT 0x0002 | |
1487 | |
1488 #define ESB_DISABLE_UP 0x0001 | |
1489 #define ESB_DISABLE_DOWN 0x0002 | |
1490 | |
1491 #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT | |
1492 #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT | |
1493 | |
1494 /* Win32 button control messages */ | |
1495 #define BM_GETCHECK 0x00f0 | |
1496 #define BM_SETCHECK 0x00f1 | |
1497 #define BM_GETSTATE 0x00f2 | |
1498 #define BM_SETSTATE 0x00f3 | |
1499 #define BM_SETSTYLE 0x00f4 | |
1500 #define BM_CLICK 0x00f5 | |
1501 #define BM_GETIMAGE 0x00f6 | |
1502 #define BM_SETIMAGE 0x00f7 | |
1503 /* Winelib button control messages */ | |
1504 | |
1505 /* Button notification codes */ | |
1506 #define BN_CLICKED 0 | |
1507 #define BN_PAINT 1 | |
1508 #define BN_HILITE 2 | |
1509 #define BN_UNHILITE 3 | |
1510 #define BN_DISABLE 4 | |
1511 #define BN_DOUBLECLICKED 5 | |
1512 | |
1513 /* Button states */ | |
1514 #define BST_UNCHECKED 0x0000 | |
1515 #define BST_CHECKED 0x0001 | |
1516 #define BST_INDETERMINATE 0x0002 | |
1517 #define BST_PUSHED 0x0004 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1518 #define BST_FOCUS 0x0008 |
1 | 1519 |
1520 /* Static Control Styles */ | |
1521 #define SS_LEFT 0x00000000L | |
1522 #define SS_CENTER 0x00000001L | |
1523 #define SS_RIGHT 0x00000002L | |
1524 #define SS_ICON 0x00000003L | |
1525 #define SS_BLACKRECT 0x00000004L | |
1526 #define SS_GRAYRECT 0x00000005L | |
1527 #define SS_WHITERECT 0x00000006L | |
1528 #define SS_BLACKFRAME 0x00000007L | |
1529 #define SS_GRAYFRAME 0x00000008L | |
1530 #define SS_WHITEFRAME 0x00000009L | |
1531 | |
1532 #define SS_SIMPLE 0x0000000BL | |
1533 #define SS_LEFTNOWORDWRAP 0x0000000CL | |
1534 | |
1535 #define SS_OWNERDRAW 0x0000000DL | |
1536 #define SS_BITMAP 0x0000000EL | |
1537 #define SS_ENHMETAFILE 0x0000000FL | |
1538 | |
1539 #define SS_ETCHEDHORZ 0x00000010L | |
1540 #define SS_ETCHEDVERT 0x00000011L | |
1541 #define SS_ETCHEDFRAME 0x00000012L | |
1542 #define SS_TYPEMASK 0x0000001FL | |
1543 | |
1544 #define SS_NOPREFIX 0x00000080L | |
1545 #define SS_NOTIFY 0x00000100L | |
1546 #define SS_CENTERIMAGE 0x00000200L | |
1547 #define SS_RIGHTJUST 0x00000400L | |
1548 #define SS_REALSIZEIMAGE 0x00000800L | |
1549 #define SS_SUNKEN 0x00001000L | |
1550 | |
1551 /* Static Control Messages */ | |
1552 #define STM_SETICON 0x0170 | |
1553 #define STM_GETICON 0x0171 | |
1554 #define STM_SETIMAGE 0x0172 | |
1555 #define STM_GETIMAGE 0x0173 | |
1556 | |
1557 /* Scrollbar messages */ | |
1558 #define SBM_SETPOS 0x00e0 | |
1559 #define SBM_GETPOS 0x00e1 | |
1560 #define SBM_SETRANGE 0x00e2 | |
1561 #define SBM_GETRANGE 0x00e3 | |
1562 #define SBM_ENABLE_ARROWS 0x00e4 | |
1563 #define SBM_SETRANGEREDRAW 0x00e6 | |
1564 #define SBM_SETSCROLLINFO 0x00e9 | |
1565 #define SBM_GETSCROLLINFO 0x00ea | |
1566 | |
1567 /* Scrollbar info */ | |
1568 typedef struct | |
1569 { | |
1570 UINT cbSize; | |
1571 UINT fMask; | |
1572 INT nMin; | |
1573 INT nMax; | |
1574 UINT nPage; | |
1575 INT nPos; | |
1576 INT nTrackPos; | |
1577 } SCROLLINFO, *LPSCROLLINFO; | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1578 |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1579 /* GetScrollInfo() flags */ |
1 | 1580 #define SIF_RANGE 0x0001 |
1581 #define SIF_PAGE 0x0002 | |
1582 #define SIF_POS 0x0004 | |
1583 #define SIF_DISABLENOSCROLL 0x0008 | |
1584 #define SIF_TRACKPOS 0x0010 | |
1585 #define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS) | |
1586 | |
1587 /* Listbox styles */ | |
1588 #define LBS_NOTIFY 0x0001 | |
1589 #define LBS_SORT 0x0002 | |
1590 #define LBS_NOREDRAW 0x0004 | |
1591 #define LBS_MULTIPLESEL 0x0008 | |
1592 #define LBS_OWNERDRAWFIXED 0x0010 | |
1593 #define LBS_OWNERDRAWVARIABLE 0x0020 | |
1594 #define LBS_HASSTRINGS 0x0040 | |
1595 #define LBS_USETABSTOPS 0x0080 | |
1596 #define LBS_NOINTEGRALHEIGHT 0x0100 | |
1597 #define LBS_MULTICOLUMN 0x0200 | |
1598 #define LBS_WANTKEYBOARDINPUT 0x0400 | |
1599 #define LBS_EXTENDEDSEL 0x0800 | |
1600 #define LBS_DISABLENOSCROLL 0x1000 | |
1601 #define LBS_NODATA 0x2000 | |
1602 #define LBS_NOSEL 0x4000 | |
1603 #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER) | |
1604 | |
1605 /* Listbox messages */ | |
1606 #define LB_ADDSTRING 0x0180 | |
1607 #define LB_INSERTSTRING 0x0181 | |
1608 #define LB_DELETESTRING 0x0182 | |
1609 #define LB_SELITEMRANGEEX 0x0183 | |
1610 #define LB_RESETCONTENT 0x0184 | |
1611 #define LB_SETSEL 0x0185 | |
1612 #define LB_SETCURSEL 0x0186 | |
1613 #define LB_GETSEL 0x0187 | |
1614 #define LB_GETCURSEL 0x0188 | |
1615 #define LB_GETTEXT 0x0189 | |
1616 #define LB_GETTEXTLEN 0x018a | |
1617 #define LB_GETCOUNT 0x018b | |
1618 #define LB_SELECTSTRING 0x018c | |
1619 #define LB_DIR 0x018d | |
1620 #define LB_GETTOPINDEX 0x018e | |
1621 #define LB_FINDSTRING 0x018f | |
1622 #define LB_GETSELCOUNT 0x0190 | |
1623 #define LB_GETSELITEMS 0x0191 | |
1624 #define LB_SETTABSTOPS 0x0192 | |
1625 #define LB_GETHORIZONTALEXTENT 0x0193 | |
1626 #define LB_SETHORIZONTALEXTENT 0x0194 | |
1627 #define LB_SETCOLUMNWIDTH 0x0195 | |
1628 #define LB_ADDFILE 0x0196 | |
1629 #define LB_SETTOPINDEX 0x0197 | |
1630 #define LB_GETITEMRECT 0x0198 | |
1631 #define LB_GETITEMDATA 0x0199 | |
1632 #define LB_SETITEMDATA 0x019a | |
1633 #define LB_SELITEMRANGE 0x019b | |
1634 #define LB_SETANCHORINDEX 0x019c | |
1635 #define LB_GETANCHORINDEX 0x019d | |
1636 #define LB_SETCARETINDEX 0x019e | |
1637 #define LB_GETCARETINDEX 0x019f | |
1638 #define LB_SETITEMHEIGHT 0x01a0 | |
1639 #define LB_GETITEMHEIGHT 0x01a1 | |
1640 #define LB_FINDSTRINGEXACT 0x01a2 | |
1641 #define LB_CARETON 0x01a3 | |
1642 #define LB_CARETOFF 0x01a4 | |
1643 #define LB_SETLOCALE 0x01a5 | |
1644 #define LB_GETLOCALE 0x01a6 | |
1645 #define LB_SETCOUNT 0x01a7 | |
1646 #define LB_INITSTORAGE 0x01a8 | |
1647 #define LB_ITEMFROMPOINT 0x01a9 | |
1648 | |
1649 /* Listbox notification codes */ | |
1650 #define LBN_ERRSPACE (-2) | |
1651 #define LBN_SELCHANGE 1 | |
1652 #define LBN_DBLCLK 2 | |
1653 #define LBN_SELCANCEL 3 | |
1654 #define LBN_SETFOCUS 4 | |
1655 #define LBN_KILLFOCUS 5 | |
1656 | |
1657 /* Listbox message return values */ | |
1658 #define LB_OKAY 0 | |
1659 #define LB_ERR (-1) | |
1660 #define LB_ERRSPACE (-2) | |
1661 | |
1662 #define LB_CTLCODE 0L | |
1663 | |
1664 /* Combo box styles */ | |
1665 #define CBS_SIMPLE 0x0001L | |
1666 #define CBS_DROPDOWN 0x0002L | |
1667 #define CBS_DROPDOWNLIST 0x0003L | |
1668 #define CBS_OWNERDRAWFIXED 0x0010L | |
1669 #define CBS_OWNERDRAWVARIABLE 0x0020L | |
1670 #define CBS_AUTOHSCROLL 0x0040L | |
1671 #define CBS_OEMCONVERT 0x0080L | |
1672 #define CBS_SORT 0x0100L | |
1673 #define CBS_HASSTRINGS 0x0200L | |
1674 #define CBS_NOINTEGRALHEIGHT 0x0400L | |
1675 #define CBS_DISABLENOSCROLL 0x0800L | |
1676 | |
1677 #define CBS_UPPERCASE 0x2000L | |
1678 #define CBS_LOWERCASE 0x4000L | |
1679 | |
1680 | |
1681 /* Combo box messages */ | |
1682 #define CB_GETEDITSEL 0x0140 | |
1683 #define CB_LIMITTEXT 0x0141 | |
1684 #define CB_SETEDITSEL 0x0142 | |
1685 #define CB_ADDSTRING 0x0143 | |
1686 #define CB_DELETESTRING 0x0144 | |
1687 #define CB_DIR 0x0145 | |
1688 #define CB_GETCOUNT 0x0146 | |
1689 #define CB_GETCURSEL 0x0147 | |
1690 #define CB_GETLBTEXT 0x0148 | |
1691 #define CB_GETLBTEXTLEN 0x0149 | |
1692 #define CB_INSERTSTRING 0x014a | |
1693 #define CB_RESETCONTENT 0x014b | |
1694 #define CB_FINDSTRING 0x014c | |
1695 #define CB_SELECTSTRING 0x014d | |
1696 #define CB_SETCURSEL 0x014e | |
1697 #define CB_SHOWDROPDOWN 0x014f | |
1698 #define CB_GETITEMDATA 0x0150 | |
1699 #define CB_SETITEMDATA 0x0151 | |
1700 #define CB_GETDROPPEDCONTROLRECT 0x0152 | |
1701 #define CB_SETITEMHEIGHT 0x0153 | |
1702 #define CB_GETITEMHEIGHT 0x0154 | |
1703 #define CB_SETEXTENDEDUI 0x0155 | |
1704 #define CB_GETEXTENDEDUI 0x0156 | |
1705 #define CB_GETDROPPEDSTATE 0x0157 | |
1706 #define CB_FINDSTRINGEXACT 0x0158 | |
1707 #define CB_SETLOCALE 0x0159 | |
1708 #define CB_GETLOCALE 0x015a | |
1709 #define CB_GETTOPINDEX 0x015b | |
1710 #define CB_SETTOPINDEX 0x015c | |
1711 #define CB_GETHORIZONTALEXTENT 0x015d | |
1712 #define CB_SETHORIZONTALEXTENT 0x015e | |
1713 #define CB_GETDROPPEDWIDTH 0x015f | |
1714 #define CB_SETDROPPEDWIDTH 0x0160 | |
1715 #define CB_INITSTORAGE 0x0161 | |
1716 | |
1717 /* Combo box notification codes */ | |
1718 #define CBN_ERRSPACE (-1) | |
1719 #define CBN_SELCHANGE 1 | |
1720 #define CBN_DBLCLK 2 | |
1721 #define CBN_SETFOCUS 3 | |
1722 #define CBN_KILLFOCUS 4 | |
1723 #define CBN_EDITCHANGE 5 | |
1724 #define CBN_EDITUPDATE 6 | |
1725 #define CBN_DROPDOWN 7 | |
1726 #define CBN_CLOSEUP 8 | |
1727 #define CBN_SELENDOK 9 | |
1728 #define CBN_SELENDCANCEL 10 | |
1729 | |
1730 /* Combo box message return values */ | |
1731 #define CB_OKAY 0 | |
1732 #define CB_ERR (-1) | |
1733 #define CB_ERRSPACE (-2) | |
1734 | |
1735 #define MB_OK 0x00000000 | |
1736 #define MB_OKCANCEL 0x00000001 | |
1737 #define MB_ABORTRETRYIGNORE 0x00000002 | |
1738 #define MB_YESNOCANCEL 0x00000003 | |
1739 #define MB_YESNO 0x00000004 | |
1740 #define MB_RETRYCANCEL 0x00000005 | |
1741 #define MB_TYPEMASK 0x0000000F | |
1742 | |
1743 #define MB_ICONHAND 0x00000010 | |
1744 #define MB_ICONQUESTION 0x00000020 | |
1745 #define MB_ICONEXCLAMATION 0x00000030 | |
1746 #define MB_ICONASTERISK 0x00000040 | |
1747 #define MB_USERICON 0x00000080 | |
1748 #define MB_ICONMASK 0x000000F0 | |
1749 | |
1750 #define MB_ICONINFORMATION MB_ICONASTERISK | |
1751 #define MB_ICONSTOP MB_ICONHAND | |
1752 #define MB_ICONWARNING MB_ICONEXCLAMATION | |
1753 #define MB_ICONERROR MB_ICONHAND | |
1754 | |
1755 #define MB_DEFBUTTON1 0x00000000 | |
1756 #define MB_DEFBUTTON2 0x00000100 | |
1757 #define MB_DEFBUTTON3 0x00000200 | |
1758 #define MB_DEFBUTTON4 0x00000300 | |
1759 #define MB_DEFMASK 0x00000F00 | |
1760 | |
1761 #define MB_APPLMODAL 0x00000000 | |
1762 #define MB_SYSTEMMODAL 0x00001000 | |
1763 #define MB_TASKMODAL 0x00002000 | |
1764 #define MB_MODEMASK 0x00003000 | |
1765 | |
1766 #define MB_HELP 0x00004000 | |
1767 #define MB_NOFOCUS 0x00008000 | |
1768 #define MB_MISCMASK 0x0000C000 | |
1769 | |
1770 #define MB_SETFOREGROUND 0x00010000 | |
1771 #define MB_DEFAULT_DESKTOP_ONLY 0x00020000 | |
1772 #define MB_SERVICE_NOTIFICATION 0x00040000 | |
1773 #define MB_TOPMOST 0x00040000 | |
1774 #define MB_RIGHT 0x00080000 | |
1775 #define MB_RTLREADING 0x00100000 | |
1776 | |
1777 #define HELPINFO_WINDOW 0x0001 | |
1778 #define HELPINFO_MENUITEM 0x0002 | |
1779 | |
1780 /* Structure pointed to by lParam of WM_HELP */ | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1781 typedef struct |
1 | 1782 { |
1783 UINT cbSize; /* Size in bytes of this struct */ | |
1784 INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */ | |
1785 INT iCtrlId; /* Control Id or a Menu item Id. */ | |
1786 HANDLE hItemHandle; /* hWnd of control or hMenu. */ | |
1787 DWORD dwContextId; /* Context Id associated with this item */ | |
1788 POINT MousePos; /* Mouse Position in screen co-ordinates */ | |
1789 } HELPINFO,*LPHELPINFO; | |
1790 | |
1791 typedef void CALLBACK (*MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo); | |
1792 | |
1793 typedef struct | |
1794 { | |
1795 UINT cbSize; | |
1796 HWND hwndOwner; | |
1797 HINSTANCE hInstance; | |
1798 LPCSTR lpszText; | |
1799 LPCSTR lpszCaption; | |
1800 DWORD dwStyle; | |
1801 LPCSTR lpszIcon; | |
1802 DWORD dwContextHelpId; | |
1803 MSGBOXCALLBACK lpfnMsgBoxCallback; | |
1804 DWORD dwLanguageId; | |
1805 } MSGBOXPARAMSA,*LPMSGBOXPARAMSA; | |
1806 | |
1807 typedef struct | |
1808 { | |
1809 UINT cbSize; | |
1810 HWND hwndOwner; | |
1811 HINSTANCE hInstance; | |
1812 LPCWSTR lpszText; | |
1813 LPCWSTR lpszCaption; | |
1814 DWORD dwStyle; | |
1815 LPCWSTR lpszIcon; | |
1816 DWORD dwContextHelpId; | |
1817 MSGBOXCALLBACK lpfnMsgBoxCallback; | |
1818 DWORD dwLanguageId; | |
1819 } MSGBOXPARAMSW,*LPMSGBOXPARAMSW; | |
1820 | |
1821 DECL_WINELIB_TYPE_AW(MSGBOXPARAMS) | |
1822 DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS) | |
1823 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
1824 typedef struct numberfmt32a { |
1 | 1825 UINT NumDigits; |
1826 UINT LeadingZero; | |
1827 UINT Grouping; | |
1828 LPCSTR lpDecimalSep; | |
1829 LPCSTR lpThousandSep; | |
1830 UINT NegativeOrder; | |
1831 } NUMBERFMTA; | |
1832 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
1833 typedef struct numberfmt32w { |
1 | 1834 UINT NumDigits; |
1835 UINT LeadingZero; | |
1836 UINT Grouping; | |
1837 LPCWSTR lpDecimalSep; | |
1838 LPCWSTR lpThousandSep; | |
1839 UINT NegativeOrder; | |
1840 } NUMBERFMTW; | |
1841 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
1842 typedef struct currencyfmt32a |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1843 { |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1844 UINT NumDigits; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1845 UINT LeadingZero; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1846 UINT Grouping; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1847 LPCSTR lpDecimalSep; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1848 LPCSTR lpThousandSep; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1849 UINT NegativeOrder; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1850 UINT PositiveOrder; |
1 | 1851 LPCSTR lpCurrencySymbol; |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1852 } CURRENCYFMTA; |
1 | 1853 |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
1854 typedef struct currencyfmt32w |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1855 { |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1856 UINT NumDigits; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1857 UINT LeadingZero; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1858 UINT Grouping; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1859 LPCWSTR lpDecimalSep; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1860 LPCWSTR lpThousandSep; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1861 UINT NegativeOrder; |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1862 UINT PositiveOrder; |
1 | 1863 LPCWSTR lpCurrencySymbol; |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
1864 } CURRENCYFMTW; |
1 | 1865 |
1866 #define MONITOR_DEFAULTTONULL 0x00000000 | |
1867 #define MONITOR_DEFAULTTOPRIMARY 0x00000001 | |
1868 #define MONITOR_DEFAULTTONEAREST 0x00000002 | |
1869 | |
1870 #define MONITORINFOF_PRIMARY 0x00000001 | |
1871 | |
1872 typedef struct tagMONITORINFO | |
1873 { | |
1874 DWORD cbSize; | |
1875 RECT rcMonitor; | |
1876 RECT rcWork; | |
1877 DWORD dwFlags; | |
1878 } MONITORINFO, *LPMONITORINFO; | |
1879 | |
1880 | |
1881 typedef WIN_BOOL CALLBACK (*MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM); | |
1882 | |
1883 /* FIXME: use this instead of LPCVOID for CreateDialogIndirectParam | |
1884 and DialogBoxIndirectParam */ | |
1885 typedef struct tagDLGTEMPLATE | |
1886 { | |
1887 DWORD style; | |
1888 DWORD dwExtendedStyle; | |
1889 WORD cdit; | |
1890 short x; | |
1891 short y; | |
1892 short cx; | |
1893 short cy; | |
1894 } DLGTEMPLATE; | |
1895 | |
1896 typedef DLGTEMPLATE *LPDLGTEMPLATEA; | |
1897 typedef DLGTEMPLATE *LPDLGTEMPLATEW; | |
1898 #define LPDLGTEMPLATE WINELIB_NAME_AW(LPDLGTEMPLATE) | |
1899 typedef const DLGTEMPLATE *LPCDLGTEMPLATEA; | |
1900 typedef const DLGTEMPLATE *LPCDLGTEMPLATEW; | |
1901 #define LPCDLGTEMPLATE WINELIB_NAME_AW(LPCDLGTEMPLATE) | |
1902 | |
1903 typedef struct tagDLGITEMTEMPLATE | |
1904 { | |
1905 DWORD style; | |
1906 DWORD dwExtendedStyle; | |
1907 short x; | |
1908 short y; | |
1909 short cx; | |
1910 short cy; | |
1911 WORD id; | |
1912 } DLGITEMTEMPLATE; | |
1913 | |
1914 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA; | |
1915 typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW; | |
1916 #define LPDLGITEMTEMPLATE WINELIB_NAME_AW(LPDLGITEMTEMPLATE) | |
1917 typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEA; | |
1918 typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEW; | |
1919 #define LPCDLGITEMTEMPLATE WINELIB_NAME_AW(LPCDLGITEMTEMPLATE) | |
1920 | |
1921 | |
1922 /* CBT hook values */ | |
1923 #define HCBT_MOVESIZE 0 | |
1924 #define HCBT_MINMAX 1 | |
1925 #define HCBT_QS 2 | |
1926 #define HCBT_CREATEWND 3 | |
1927 #define HCBT_DESTROYWND 4 | |
1928 #define HCBT_ACTIVATE 5 | |
1929 #define HCBT_CLICKSKIPPED 6 | |
1930 #define HCBT_KEYSKIPPED 7 | |
1931 #define HCBT_SYSCOMMAND 8 | |
1932 #define HCBT_SETFOCUS 9 | |
1933 | |
1934 /* CBT hook structures */ | |
1935 | |
1936 typedef struct | |
1937 { | |
1938 CREATESTRUCTA *lpcs; | |
1939 HWND hwndInsertAfter; | |
1940 } CBT_CREATEWNDA, *LPCBT_CREATEWNDA; | |
1941 | |
1942 typedef struct | |
1943 { | |
1944 CREATESTRUCTW *lpcs; | |
1945 HWND hwndInsertAfter; | |
1946 } CBT_CREATEWNDW, *LPCBT_CREATEWNDW; | |
1947 | |
1948 DECL_WINELIB_TYPE_AW(CBT_CREATEWND) | |
1949 DECL_WINELIB_TYPE_AW(LPCBT_CREATEWND) | |
1950 | |
1951 typedef struct | |
1952 { | |
1953 WIN_BOOL fMouse; | |
1954 HWND hWndActive; | |
1955 } CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT; | |
1956 | |
1957 | |
1958 /* modifiers for RegisterHotKey */ | |
1959 #define MOD_ALT 0x0001 | |
1960 #define MOD_CONTROL 0x0002 | |
1961 #define MOD_SHIFT 0x0004 | |
1962 #define MOD_WIN 0x0008 | |
1963 | |
1964 /* ids for RegisterHotKey */ | |
1965 #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */ | |
1966 #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */ | |
1967 | |
1968 /* keybd_event flags */ | |
1969 #define KEYEVENTF_EXTENDEDKEY 0x0001 | |
1970 #define KEYEVENTF_KEYUP 0x0002 | |
1971 #define KEYEVENTF_WINE_FORCEEXTENDED 0x8000 | |
1972 | |
1973 /* mouse_event flags */ | |
1974 #define MOUSEEVENTF_MOVE 0x0001 | |
1975 #define MOUSEEVENTF_LEFTDOWN 0x0002 | |
1976 #define MOUSEEVENTF_LEFTUP 0x0004 | |
1977 #define MOUSEEVENTF_RIGHTDOWN 0x0008 | |
1978 #define MOUSEEVENTF_RIGHTUP 0x0010 | |
1979 #define MOUSEEVENTF_MIDDLEDOWN 0x0020 | |
1980 #define MOUSEEVENTF_MIDDLEUP 0x0040 | |
1981 #define MOUSEEVENTF_WHEEL 0x0800 | |
1982 #define MOUSEEVENTF_ABSOLUTE 0x8000 | |
1983 | |
1984 /* ExitWindows() flags */ | |
1985 #define EW_RESTARTWINDOWS 0x0042 | |
1986 #define EW_REBOOTSYSTEM 0x0043 | |
1987 #define EW_EXITANDEXECAPP 0x0044 | |
1988 | |
1989 /* ExitWindowsEx() flags */ | |
1990 #define EWX_LOGOFF 0 | |
1991 #define EWX_SHUTDOWN 1 | |
1992 #define EWX_REBOOT 2 | |
1993 #define EWX_FORCE 4 | |
1994 #define EWX_POWEROFF 8 | |
1995 | |
1996 /* SetLastErrorEx types */ | |
1997 #define SLE_ERROR 0x00000001 | |
1998 #define SLE_MINORERROR 0x00000002 | |
1999 #define SLE_WARNING 0x00000003 | |
2000 | |
2001 /* Predefined resources */ | |
2002 #define IDI_APPLICATIONA MAKEINTRESOURCEA(32512) | |
2003 #define IDI_APPLICATIONW MAKEINTRESOURCEW(32512) | |
2004 #define IDI_APPLICATION WINELIB_NAME_AW(IDI_APPLICATION) | |
2005 #define IDI_HANDA MAKEINTRESOURCEA(32513) | |
2006 #define IDI_HANDW MAKEINTRESOURCEW(32513) | |
2007 #define IDI_HAND WINELIB_NAME_AW(IDI_HAND) | |
2008 #define IDI_QUESTIONA MAKEINTRESOURCEA(32514) | |
2009 #define IDI_QUESTIONW MAKEINTRESOURCEW(32514) | |
2010 #define IDI_QUESTION WINELIB_NAME_AW(IDI_QUESTION) | |
2011 #define IDI_EXCLAMATIONA MAKEINTRESOURCEA(32515) | |
2012 #define IDI_EXCLAMATIONW MAKEINTRESOURCEW(32515) | |
2013 #define IDI_EXCLAMATION WINELIB_NAME_AW(IDI_EXCLAMATION) | |
2014 #define IDI_ASTERISKA MAKEINTRESOURCEA(32516) | |
2015 #define IDI_ASTERISKW MAKEINTRESOURCEW(32516) | |
2016 #define IDI_ASTERISK WINELIB_NAME_AW(IDI_ASTERISK) | |
2017 | |
2018 #define IDC_BUMMERA MAKEINTRESOURCEA(100) | |
2019 #define IDC_BUMMERW MAKEINTRESOURCEW(100) | |
2020 #define IDC_BUMMER WINELIB_NAME_AW(IDC_BUMMER) | |
2021 #define IDC_ARROWA MAKEINTRESOURCEA(32512) | |
2022 #define IDC_ARROWW MAKEINTRESOURCEW(32512) | |
2023 #define IDC_ARROW WINELIB_NAME_AW(IDC_ARROW) | |
2024 #define IDC_IBEAMA MAKEINTRESOURCEA(32513) | |
2025 #define IDC_IBEAMW MAKEINTRESOURCEW(32513) | |
2026 #define IDC_IBEAM WINELIB_NAME_AW(IDC_IBEAM) | |
2027 #define IDC_WAITA MAKEINTRESOURCEA(32514) | |
2028 #define IDC_WAITW MAKEINTRESOURCEW(32514) | |
2029 #define IDC_WAIT WINELIB_NAME_AW(IDC_WAIT) | |
2030 #define IDC_CROSSA MAKEINTRESOURCEA(32515) | |
2031 #define IDC_CROSSW MAKEINTRESOURCEW(32515) | |
2032 #define IDC_CROSS WINELIB_NAME_AW(IDC_CROSS) | |
2033 #define IDC_UPARROWA MAKEINTRESOURCEA(32516) | |
2034 #define IDC_UPARROWW MAKEINTRESOURCEW(32516) | |
2035 #define IDC_UPARROW WINELIB_NAME_AW(IDC_UPARROW) | |
2036 #define IDC_SIZEA MAKEINTRESOURCEA(32640) | |
2037 #define IDC_SIZEW MAKEINTRESOURCEW(32640) | |
2038 #define IDC_SIZE WINELIB_NAME_AW(IDC_SIZE) | |
2039 #define IDC_ICONA MAKEINTRESOURCEA(32641) | |
2040 #define IDC_ICONW MAKEINTRESOURCEW(32641) | |
2041 #define IDC_ICON WINELIB_NAME_AW(IDC_ICON) | |
2042 #define IDC_SIZENWSEA MAKEINTRESOURCEA(32642) | |
2043 #define IDC_SIZENWSEW MAKEINTRESOURCEW(32642) | |
2044 #define IDC_SIZENWSE WINELIB_NAME_AW(IDC_SIZENWSE) | |
2045 #define IDC_SIZENESWA MAKEINTRESOURCEA(32643) | |
2046 #define IDC_SIZENESWW MAKEINTRESOURCEW(32643) | |
2047 #define IDC_SIZENESW WINELIB_NAME_AW(IDC_SIZENESW) | |
2048 #define IDC_SIZEWEA MAKEINTRESOURCEA(32644) | |
2049 #define IDC_SIZEWEW MAKEINTRESOURCEW(32644) | |
2050 #define IDC_SIZEWE WINELIB_NAME_AW(IDC_SIZEWE) | |
2051 #define IDC_SIZENSA MAKEINTRESOURCEA(32645) | |
2052 #define IDC_SIZENSW MAKEINTRESOURCEW(32645) | |
2053 #define IDC_SIZENS WINELIB_NAME_AW(IDC_SIZENS) | |
2054 #define IDC_SIZEALLA MAKEINTRESOURCEA(32646) | |
2055 #define IDC_SIZEALLW MAKEINTRESOURCEW(32646) | |
2056 #define IDC_SIZEALL WINELIB_NAME_AW(IDC_SIZEALL) | |
2057 #define IDC_NOA MAKEINTRESOURCEA(32648) | |
2058 #define IDC_NOW MAKEINTRESOURCEW(32648) | |
2059 #define IDC_NO WINELIB_NAME_AW(IDC_NO) | |
2060 #define IDC_APPSTARTINGA MAKEINTRESOURCEA(32650) | |
2061 #define IDC_APPSTARTINGW MAKEINTRESOURCEW(32650) | |
2062 #define IDC_APPSTARTING WINELIB_NAME_AW(IDC_APPSTARTING) | |
2063 #define IDC_HELPA MAKEINTRESOURCEA(32651) | |
2064 #define IDC_HELPW MAKEINTRESOURCEW(32651) | |
2065 #define IDC_HELP WINELIB_NAME_AW(IDC_HELP) | |
2066 | |
2067 #define MNC_IGNORE 0 | |
2068 #define MNC_CLOSE 1 | |
2069 #define MNC_EXECUTE 2 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
2070 #define MNC_SELECT 3 |
1 | 2071 |
2072 /* SystemParametersInfo */ | |
2073 /* defines below are for all win versions */ | |
2074 #define SPI_GETBEEP 1 | |
2075 #define SPI_SETBEEP 2 | |
2076 #define SPI_GETMOUSE 3 | |
2077 #define SPI_SETMOUSE 4 | |
2078 #define SPI_GETBORDER 5 | |
2079 #define SPI_SETBORDER 6 | |
2080 #define SPI_GETKEYBOARDSPEED 10 | |
2081 #define SPI_SETKEYBOARDSPEED 11 | |
2082 #define SPI_LANGDRIVER 12 | |
2083 #define SPI_ICONHORIZONTALSPACING 13 | |
2084 #define SPI_GETSCREENSAVETIMEOUT 14 | |
2085 #define SPI_SETSCREENSAVETIMEOUT 15 | |
2086 #define SPI_GETSCREENSAVEACTIVE 16 | |
2087 #define SPI_SETSCREENSAVEACTIVE 17 | |
2088 #define SPI_GETGRIDGRANULARITY 18 | |
2089 #define SPI_SETGRIDGRANULARITY 19 | |
2090 #define SPI_SETDESKWALLPAPER 20 | |
2091 #define SPI_SETDESKPATTERN 21 | |
2092 #define SPI_GETKEYBOARDDELAY 22 | |
2093 #define SPI_SETKEYBOARDDELAY 23 | |
2094 #define SPI_ICONVERTICALSPACING 24 | |
2095 #define SPI_GETICONTITLEWRAP 25 | |
2096 #define SPI_SETICONTITLEWRAP 26 | |
2097 #define SPI_GETMENUDROPALIGNMENT 27 | |
2098 #define SPI_SETMENUDROPALIGNMENT 28 | |
2099 #define SPI_SETDOUBLECLKWIDTH 29 | |
2100 #define SPI_SETDOUBLECLKHEIGHT 30 | |
2101 #define SPI_GETICONTITLELOGFONT 31 | |
2102 #define SPI_SETDOUBLECLICKTIME 32 | |
2103 #define SPI_SETMOUSEBUTTONSWAP 33 | |
2104 #define SPI_SETICONTITLELOGFONT 34 | |
2105 #define SPI_GETFASTTASKSWITCH 35 | |
2106 #define SPI_SETFASTTASKSWITCH 36 | |
2107 #define SPI_SETDRAGFULLWINDOWS 37 | |
2108 #define SPI_GETDRAGFULLWINDOWS 38 | |
2109 | |
2110 #define SPI_GETFILTERKEYS 50 | |
2111 #define SPI_SETFILTERKEYS 51 | |
2112 #define SPI_GETTOGGLEKEYS 52 | |
2113 #define SPI_SETTOGGLEKEYS 53 | |
2114 #define SPI_GETMOUSEKEYS 54 | |
2115 #define SPI_SETMOUSEKEYS 55 | |
2116 #define SPI_GETSHOWSOUNDS 56 | |
2117 #define SPI_SETSHOWSOUNDS 57 | |
2118 #define SPI_GETSTICKYKEYS 58 | |
2119 #define SPI_SETSTICKYKEYS 59 | |
2120 #define SPI_GETACCESSTIMEOUT 60 | |
2121 #define SPI_SETACCESSTIMEOUT 61 | |
2122 | |
2123 #define SPI_GETSOUNDSENTRY 64 | |
2124 #define SPI_SETSOUNDSENTRY 65 | |
2125 | |
2126 /* defines below are for all win versions WINVER >= 0x0400 */ | |
2127 #define SPI_SETDRAGFULLWINDOWS 37 | |
2128 #define SPI_GETDRAGFULLWINDOWS 38 | |
2129 #define SPI_GETNONCLIENTMETRICS 41 | |
2130 #define SPI_SETNONCLIENTMETRICS 42 | |
2131 #define SPI_GETMINIMIZEDMETRICS 43 | |
2132 #define SPI_SETMINIMIZEDMETRICS 44 | |
2133 #define SPI_GETICONMETRICS 45 | |
2134 #define SPI_SETICONMETRICS 46 | |
2135 #define SPI_SETWORKAREA 47 | |
2136 #define SPI_GETWORKAREA 48 | |
2137 #define SPI_SETPENWINDOWS 49 | |
2138 | |
2139 #define SPI_GETSERIALKEYS 62 | |
2140 #define SPI_SETSERIALKEYS 63 | |
2141 #define SPI_GETHIGHCONTRAST 66 | |
2142 #define SPI_SETHIGHCONTRAST 67 | |
2143 #define SPI_GETKEYBOARDPREF 68 | |
2144 #define SPI_SETKEYBOARDPREF 69 | |
2145 #define SPI_GETSCREENREADER 70 | |
2146 #define SPI_SETSCREENREADER 71 | |
2147 #define SPI_GETANIMATION 72 | |
2148 #define SPI_SETANIMATION 73 | |
2149 #define SPI_GETFONTSMOOTHING 74 | |
2150 #define SPI_SETFONTSMOOTHING 75 | |
2151 #define SPI_SETDRAGWIDTH 76 | |
2152 #define SPI_SETDRAGHEIGHT 77 | |
2153 #define SPI_SETHANDHELD 78 | |
2154 #define SPI_GETLOWPOWERTIMEOUT 79 | |
2155 #define SPI_GETPOWEROFFTIMEOUT 80 | |
2156 #define SPI_SETLOWPOWERTIMEOUT 81 | |
2157 #define SPI_SETPOWEROFFTIMEOUT 82 | |
2158 #define SPI_GETLOWPOWERACTIVE 83 | |
2159 #define SPI_GETPOWEROFFACTIVE 84 | |
2160 #define SPI_SETLOWPOWERACTIVE 85 | |
2161 #define SPI_SETPOWEROFFACTIVE 86 | |
2162 #define SPI_SETCURSORS 87 | |
2163 #define SPI_SETICONS 88 | |
2164 #define SPI_GETDEFAULTINPUTLANG 89 | |
2165 #define SPI_SETDEFAULTINPUTLANG 90 | |
2166 #define SPI_SETLANGTOGGLE 91 | |
2167 #define SPI_GETWINDOWSEXTENSION 92 | |
2168 #define SPI_SETMOUSETRAILS 93 | |
2169 #define SPI_GETMOUSETRAILS 94 | |
2170 #define SPI_SETSCREENSAVERRUNNING 97 | |
2171 #define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING | |
2172 | |
2173 /* defines below are for all win versions (_WIN32_WINNT >= 0x0400) || | |
2174 * (_WIN32_WINDOWS > 0x0400) */ | |
2175 #define SPI_GETMOUSEHOVERWIDTH 98 | |
2176 #define SPI_SETMOUSEHOVERWIDTH 99 | |
2177 #define SPI_GETMOUSEHOVERHEIGHT 100 | |
2178 #define SPI_SETMOUSEHOVERHEIGHT 101 | |
2179 #define SPI_GETMOUSEHOVERTIME 102 | |
2180 #define SPI_SETMOUSEHOVERTIME 103 | |
2181 #define SPI_GETWHEELSCROLLLINES 104 | |
2182 #define SPI_SETWHEELSCROLLLINES 105 | |
2183 | |
2184 #define SPI_GETSHOWIMEUI 110 | |
2185 #define SPI_SETSHOWIMEUI 111 | |
2186 | |
2187 /* defines below are for all win versions WINVER >= 0x0500 */ | |
2188 #define SPI_GETMOUSESPEED 112 | |
2189 #define SPI_SETMOUSESPEED 113 | |
2190 #define SPI_GETSCREENSAVERRUNNING 114 | |
2191 | |
2192 #define SPI_GETACTIVEWINDOWTRACKING 0x1000 | |
2193 #define SPI_SETACTIVEWINDOWTRACKING 0x1001 | |
2194 #define SPI_GETMENUANIMATION 0x1002 | |
2195 #define SPI_SETMENUANIMATION 0x1003 | |
2196 #define SPI_GETCOMBOBOXANIMATION 0x1004 | |
2197 #define SPI_SETCOMBOBOXANIMATION 0x1005 | |
2198 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006 | |
2199 #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007 | |
2200 #define SPI_GETGRADIENTCAPTIONS 0x1008 | |
2201 #define SPI_SETGRADIENTCAPTIONS 0x1009 | |
2202 #define SPI_GETMENUUNDERLINES 0x100A | |
2203 #define SPI_SETMENUUNDERLINES 0x100B | |
2204 #define SPI_GETACTIVEWNDTRKZORDER 0x100C | |
2205 #define SPI_SETACTIVEWNDTRKZORDER 0x100D | |
2206 #define SPI_GETHOTTRACKING 0x100E | |
2207 #define SPI_SETHOTTRACKING 0x100F | |
2208 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000 | |
2209 #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001 | |
2210 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002 | |
2211 #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003 | |
2212 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004 | |
2213 #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005 | |
2214 | |
2215 /* SystemParametersInfo flags */ | |
2216 | |
2217 #define SPIF_UPDATEINIFILE 1 | |
2218 #define SPIF_SENDWININICHANGE 2 | |
2219 #define SPIF_SENDCHANGE SPIF_SENDWININICHANGE | |
2220 | |
2221 | |
2222 | |
2223 | |
2224 /* Window Styles */ | |
2225 #define WS_OVERLAPPED 0x00000000L | |
2226 #define WS_POPUP 0x80000000L | |
2227 #define WS_CHILD 0x40000000L | |
2228 #define WS_MINIMIZE 0x20000000L | |
2229 #define WS_VISIBLE 0x10000000L | |
2230 #define WS_DISABLED 0x08000000L | |
2231 #define WS_CLIPSIBLINGS 0x04000000L | |
2232 #define WS_CLIPCHILDREN 0x02000000L | |
2233 #define WS_MAXIMIZE 0x01000000L | |
2234 #define WS_CAPTION 0x00C00000L | |
2235 #define WS_BORDER 0x00800000L | |
2236 #define WS_DLGFRAME 0x00400000L | |
2237 #define WS_VSCROLL 0x00200000L | |
2238 #define WS_HSCROLL 0x00100000L | |
2239 #define WS_SYSMENU 0x00080000L | |
2240 #define WS_THICKFRAME 0x00040000L | |
2241 #define WS_GROUP 0x00020000L | |
2242 #define WS_TABSTOP 0x00010000L | |
2243 #define WS_MINIMIZEBOX 0x00020000L | |
2244 #define WS_MAXIMIZEBOX 0x00010000L | |
2245 #define WS_TILED WS_OVERLAPPED | |
2246 #define WS_ICONIC WS_MINIMIZE | |
2247 #define WS_SIZEBOX WS_THICKFRAME | |
2248 #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX) | |
2249 #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU) | |
2250 #define WS_CHILDWINDOW (WS_CHILD) | |
2251 #define WS_TILEDWINDOW (WS_OVERLAPPEDWINDOW) | |
2252 | |
2253 /* Window extended styles */ | |
2254 #define WS_EX_DLGMODALFRAME 0x00000001L | |
2255 #define WS_EX_DRAGDETECT 0x00000002L | |
2256 #define WS_EX_NOPARENTNOTIFY 0x00000004L | |
2257 #define WS_EX_TOPMOST 0x00000008L | |
2258 #define WS_EX_ACCEPTFILES 0x00000010L | |
2259 #define WS_EX_TRANSPARENT 0x00000020L | |
2260 | |
2261 /* New Win95/WinNT4 styles */ | |
2262 #define WS_EX_MDICHILD 0x00000040L | |
2263 #define WS_EX_TOOLWINDOW 0x00000080L | |
2264 #define WS_EX_WINDOWEDGE 0x00000100L | |
2265 #define WS_EX_CLIENTEDGE 0x00000200L | |
2266 #define WS_EX_CONTEXTHELP 0x00000400L | |
2267 #define WS_EX_RIGHT 0x00001000L | |
2268 #define WS_EX_LEFT 0x00000000L | |
2269 #define WS_EX_RTLREADING 0x00002000L | |
2270 #define WS_EX_LTRREADING 0x00000000L | |
2271 #define WS_EX_LEFTSCROLLBAR 0x00004000L | |
2272 #define WS_EX_RIGHTSCROLLBAR 0x00000000L | |
2273 #define WS_EX_CONTROLPARENT 0x00010000L | |
2274 #define WS_EX_STATICEDGE 0x00020000L | |
2275 #define WS_EX_APPWINDOW 0x00040000L | |
2276 | |
2277 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE|WS_EX_CLIENTEDGE) | |
2278 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST) | |
2279 | |
2280 /* WINE internal... */ | |
2281 #define WS_EX_TRAYWINDOW 0x80000000L | |
2282 | |
2283 /* Window scrolling */ | |
2284 #define SW_SCROLLCHILDREN 0x0001 | |
2285 #define SW_INVALIDATE 0x0002 | |
2286 #define SW_ERASE 0x0004 | |
2287 | |
2288 /* CreateWindow() coordinates */ | |
2289 #define CW_USEDEFAULT ((INT)0x80000000) | |
2290 | |
2291 /* ChildWindowFromPointEx Flags */ | |
2292 #define CWP_ALL 0x0000 | |
2293 #define CWP_SKIPINVISIBLE 0x0001 | |
2294 #define CWP_SKIPDISABLED 0x0002 | |
2295 #define CWP_SKIPTRANSPARENT 0x0004 | |
2296 | |
2297 /* PeekMessage() options */ | |
2298 #define PM_NOREMOVE 0x0000 | |
2299 #define PM_REMOVE 0x0001 | |
2300 #define PM_NOYIELD 0x0002 | |
2301 | |
2302 /* WM_SHOWWINDOW wParam codes */ | |
2303 #define SW_PARENTCLOSING 1 | |
2304 #define SW_OTHERMAXIMIZED 2 | |
2305 #define SW_PARENTOPENING 3 | |
2306 #define SW_OTHERRESTORED 4 | |
2307 | |
2308 /* ShowWindow() codes */ | |
2309 #define SW_HIDE 0 | |
2310 #define SW_SHOWNORMAL 1 | |
2311 #define SW_NORMAL 1 | |
2312 #define SW_SHOWMINIMIZED 2 | |
2313 #define SW_SHOWMAXIMIZED 3 | |
2314 #define SW_MAXIMIZE 3 | |
2315 #define SW_SHOWNOACTIVATE 4 | |
2316 #define SW_SHOW 5 | |
2317 #define SW_MINIMIZE 6 | |
2318 #define SW_SHOWMINNOACTIVE 7 | |
2319 #define SW_SHOWNA 8 | |
2320 #define SW_RESTORE 9 | |
2321 #define SW_SHOWDEFAULT 10 | |
2322 #define SW_MAX 10 | |
2323 #define SW_NORMALNA 0xCC /* undoc. flag in MinMaximize */ | |
2324 | |
2325 /* WM_SIZE message wParam values */ | |
2326 #define SIZE_RESTORED 0 | |
2327 #define SIZE_MINIMIZED 1 | |
2328 #define SIZE_MAXIMIZED 2 | |
2329 #define SIZE_MAXSHOW 3 | |
2330 #define SIZE_MAXHIDE 4 | |
2331 #define SIZENORMAL SIZE_RESTORED | |
2332 #define SIZEICONIC SIZE_MINIMIZED | |
2333 #define SIZEFULLSCREEN SIZE_MAXIMIZED | |
2334 #define SIZEZOOMSHOW SIZE_MAXSHOW | |
2335 #define SIZEZOOMHIDE SIZE_MAXHIDE | |
2336 | |
2337 /* SetWindowPos() and WINDOWPOS flags */ | |
2338 #define SWP_NOSIZE 0x0001 | |
2339 #define SWP_NOMOVE 0x0002 | |
2340 #define SWP_NOZORDER 0x0004 | |
2341 #define SWP_NOREDRAW 0x0008 | |
2342 #define SWP_NOACTIVATE 0x0010 | |
2343 #define SWP_FRAMECHANGED 0x0020 /* The frame changed: send WM_NCCALCSIZE */ | |
2344 #define SWP_SHOWWINDOW 0x0040 | |
2345 #define SWP_HIDEWINDOW 0x0080 | |
2346 #define SWP_NOCOPYBITS 0x0100 | |
2347 #define SWP_NOOWNERZORDER 0x0200 /* Don't do owner Z ordering */ | |
2348 | |
2349 #define SWP_DRAWFRAME SWP_FRAMECHANGED | |
2350 #define SWP_NOREPOSITION SWP_NOOWNERZORDER | |
2351 | |
2352 #define SWP_NOSENDCHANGING 0x0400 | |
2353 #define SWP_DEFERERASE 0x2000 | |
2354 #define SWP_ASYNCWINDOWPOS 0x4000 | |
2355 | |
2356 #define HWND_DESKTOP ((HWND)0) | |
2357 #define HWND_BROADCAST ((HWND)0xffff) | |
2358 | |
2359 /* SetWindowPos() hwndInsertAfter field values */ | |
2360 #define HWND_TOP ((HWND)0) | |
2361 #define HWND_BOTTOM ((HWND)1) | |
2362 #define HWND_TOPMOST ((HWND)-1) | |
2363 #define HWND_NOTOPMOST ((HWND)-2) | |
2364 | |
2365 #define MF_INSERT 0x0000 | |
2366 #define MF_CHANGE 0x0080 | |
2367 #define MF_APPEND 0x0100 | |
2368 #define MF_DELETE 0x0200 | |
2369 #define MF_REMOVE 0x1000 | |
2370 #define MF_END 0x0080 | |
2371 | |
2372 #define MF_ENABLED 0x0000 | |
2373 #define MF_GRAYED 0x0001 | |
2374 #define MF_DISABLED 0x0002 | |
2375 #define MF_STRING 0x0000 | |
2376 #define MF_BITMAP 0x0004 | |
2377 #define MF_UNCHECKED 0x0000 | |
2378 #define MF_CHECKED 0x0008 | |
2379 #define MF_POPUP 0x0010 | |
2380 #define MF_MENUBARBREAK 0x0020 | |
2381 #define MF_MENUBREAK 0x0040 | |
2382 #define MF_UNHILITE 0x0000 | |
2383 #define MF_HILITE 0x0080 | |
2384 #define MF_OWNERDRAW 0x0100 | |
2385 #define MF_USECHECKBITMAPS 0x0200 | |
2386 #define MF_BYCOMMAND 0x0000 | |
2387 #define MF_BYPOSITION 0x0400 | |
2388 #define MF_SEPARATOR 0x0800 | |
2389 #define MF_DEFAULT 0x1000 | |
2390 #define MF_SYSMENU 0x2000 | |
2391 #define MF_HELP 0x4000 | |
2392 #define MF_RIGHTJUSTIFY 0x4000 | |
2393 #define MF_MOUSESELECT 0x8000 | |
2394 | |
2395 /* Flags for extended menu item types. */ | |
2396 #define MFT_STRING MF_STRING | |
2397 #define MFT_BITMAP MF_BITMAP | |
2398 #define MFT_MENUBARBREAK MF_MENUBARBREAK | |
2399 #define MFT_MENUBREAK MF_MENUBREAK | |
2400 #define MFT_OWNERDRAW MF_OWNERDRAW | |
2401 #define MFT_RADIOCHECK 0x00000200L | |
2402 #define MFT_SEPARATOR MF_SEPARATOR | |
2403 #define MFT_RIGHTORDER 0x00002000L | |
2404 #define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY | |
2405 | |
2406 /* Flags for extended menu item states. */ | |
2407 #define MFS_GRAYED 0x00000003L | |
2408 #define MFS_DISABLED MFS_GRAYED | |
2409 #define MFS_CHECKED MF_CHECKED | |
2410 #define MFS_HILITE MF_HILITE | |
2411 #define MFS_ENABLED MF_ENABLED | |
2412 #define MFS_UNCHECKED MF_UNCHECKED | |
2413 #define MFS_UNHILITE MF_UNHILITE | |
2414 #define MFS_DEFAULT MF_DEFAULT | |
2415 #define MFS_MASK 0x0000108BL | |
2416 #define MFS_HOTTRACKDRAWN 0x10000000L | |
2417 #define MFS_CACHEDBMP 0x20000000L | |
2418 #define MFS_BOTTOMGAPDROP 0x40000000L | |
2419 #define MFS_TOPGAPDROP 0x80000000L | |
2420 #define MFS_GAPDROP 0xC0000000L | |
2421 | |
2422 /* for GetMenuDefaultItem */ | |
2423 #define GMDI_USEDISABLED 0x0001L | |
2424 #define GMDI_GOINTOPOPUPS 0x0002L | |
2425 | |
2426 #define DT_TOP 0 | |
2427 #define DT_LEFT 0 | |
2428 #define DT_CENTER 1 | |
2429 #define DT_RIGHT 2 | |
2430 #define DT_VCENTER 4 | |
2431 #define DT_BOTTOM 8 | |
2432 #define DT_WORDBREAK 16 | |
2433 #define DT_SINGLELINE 32 | |
2434 #define DT_EXPANDTABS 64 | |
2435 #define DT_TABSTOP 128 | |
2436 #define DT_NOCLIP 256 | |
2437 #define DT_EXTERNALLEADING 512 | |
2438 #define DT_CALCRECT 1024 | |
2439 #define DT_NOPREFIX 2048 | |
2440 #define DT_INTERNAL 4096 | |
2441 | |
2442 /* DrawCaption()/DrawCaptionTemp() flags */ | |
2443 #define DC_ACTIVE 0x0001 | |
2444 #define DC_SMALLCAP 0x0002 | |
2445 #define DC_ICON 0x0004 | |
2446 #define DC_TEXT 0x0008 | |
2447 #define DC_INBUTTON 0x0010 | |
2448 | |
2449 /* DrawEdge() flags */ | |
2450 #define BDR_RAISEDOUTER 0x0001 | |
2451 #define BDR_SUNKENOUTER 0x0002 | |
2452 #define BDR_RAISEDINNER 0x0004 | |
2453 #define BDR_SUNKENINNER 0x0008 | |
2454 | |
2455 #define BDR_OUTER 0x0003 | |
2456 #define BDR_INNER 0x000c | |
2457 #define BDR_RAISED 0x0005 | |
2458 #define BDR_SUNKEN 0x000a | |
2459 | |
2460 #define EDGE_RAISED (BDR_RAISEDOUTER | BDR_RAISEDINNER) | |
2461 #define EDGE_SUNKEN (BDR_SUNKENOUTER | BDR_SUNKENINNER) | |
2462 #define EDGE_ETCHED (BDR_SUNKENOUTER | BDR_RAISEDINNER) | |
2463 #define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER) | |
2464 | |
2465 /* border flags */ | |
2466 #define BF_LEFT 0x0001 | |
2467 #define BF_TOP 0x0002 | |
2468 #define BF_RIGHT 0x0004 | |
2469 #define BF_BOTTOM 0x0008 | |
2470 #define BF_DIAGONAL 0x0010 | |
2471 #define BF_MIDDLE 0x0800 /* Fill in the middle */ | |
2472 #define BF_SOFT 0x1000 /* For softer buttons */ | |
2473 #define BF_ADJUST 0x2000 /* Calculate the space left over */ | |
2474 #define BF_FLAT 0x4000 /* For flat rather than 3D borders */ | |
2475 #define BF_MONO 0x8000 /* For monochrome borders */ | |
2476 #define BF_TOPLEFT (BF_TOP | BF_LEFT) | |
2477 #define BF_TOPRIGHT (BF_TOP | BF_RIGHT) | |
2478 #define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT) | |
2479 #define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT) | |
2480 #define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM) | |
2481 #define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT) | |
2482 #define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT) | |
2483 #define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT) | |
2484 #define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT) | |
2485 | |
2486 /* DrawFrameControl() uType's */ | |
2487 | |
2488 #define DFC_CAPTION 1 | |
2489 #define DFC_MENU 2 | |
2490 #define DFC_SCROLL 3 | |
2491 #define DFC_BUTTON 4 | |
2492 | |
2493 /* uState's */ | |
2494 | |
2495 #define DFCS_CAPTIONCLOSE 0x0000 | |
2496 #define DFCS_CAPTIONMIN 0x0001 | |
2497 #define DFCS_CAPTIONMAX 0x0002 | |
2498 #define DFCS_CAPTIONRESTORE 0x0003 | |
2499 #define DFCS_CAPTIONHELP 0x0004 /* Windows 95 only */ | |
2500 | |
2501 #define DFCS_MENUARROW 0x0000 | |
2502 #define DFCS_MENUCHECK 0x0001 | |
2503 #define DFCS_MENUBULLET 0x0002 | |
2504 #define DFCS_MENUARROWRIGHT 0x0004 | |
2505 | |
2506 #define DFCS_SCROLLUP 0x0000 | |
2507 #define DFCS_SCROLLDOWN 0x0001 | |
2508 #define DFCS_SCROLLLEFT 0x0002 | |
2509 #define DFCS_SCROLLRIGHT 0x0003 | |
2510 #define DFCS_SCROLLCOMBOBOX 0x0005 | |
2511 #define DFCS_SCROLLSIZEGRIP 0x0008 | |
2512 #define DFCS_SCROLLSIZEGRIPRIGHT 0x0010 | |
2513 | |
2514 #define DFCS_BUTTONCHECK 0x0000 | |
2515 #define DFCS_BUTTONRADIOIMAGE 0x0001 | |
2516 #define DFCS_BUTTONRADIOMASK 0x0002 /* to draw nonsquare button */ | |
2517 #define DFCS_BUTTONRADIO 0x0004 | |
2518 #define DFCS_BUTTON3STATE 0x0008 | |
2519 #define DFCS_BUTTONPUSH 0x0010 | |
2520 | |
2521 /* additional state of the control */ | |
2522 | |
2523 #define DFCS_INACTIVE 0x0100 | |
2524 #define DFCS_PUSHED 0x0200 | |
2525 #define DFCS_CHECKED 0x0400 | |
2526 #define DFCS_ADJUSTRECT 0x2000 /* exclude surrounding edge */ | |
2527 #define DFCS_FLAT 0x4000 | |
2528 #define DFCS_MONO 0x8000 | |
2529 | |
2530 /* Image type */ | |
2531 #define DST_COMPLEX 0x0000 | |
2532 #define DST_TEXT 0x0001 | |
2533 #define DST_PREFIXTEXT 0x0002 | |
2534 #define DST_ICON 0x0003 | |
2535 #define DST_BITMAP 0x0004 | |
2536 | |
2537 /* State type */ | |
2538 #define DSS_NORMAL 0x0000 | |
2539 #define DSS_UNION 0x0010 /* Gray string appearance */ | |
2540 #define DSS_DISABLED 0x0020 | |
2541 #define DSS_DEFAULT 0x0040 /* Make it bold */ | |
2542 #define DSS_MONO 0x0080 | |
2543 #define DSS_RIGHT 0x8000 | |
2544 | |
24406 | 2545 typedef struct |
1 | 2546 { |
2547 UINT CtlType; | |
2548 UINT CtlID; | |
2549 UINT itemID; | |
2550 UINT itemAction; | |
2551 UINT itemState; | |
2552 HWND hwndItem; | |
2553 HDC hDC; | |
24406 | 2554 RECT rcItem WINE_PACKED; |
2555 DWORD itemData WINE_PACKED; | |
1 | 2556 } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT; |
2557 | |
2558 | |
2559 typedef struct | |
2560 { | |
2561 UINT CtlType; | |
2562 UINT CtlID; | |
2563 UINT itemID; | |
2564 UINT itemWidth; | |
2565 UINT itemHeight; | |
2566 DWORD itemData; | |
2567 } MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT; | |
2568 | |
2569 | |
2570 typedef struct | |
2571 { | |
2572 UINT CtlType; | |
2573 UINT CtlID; | |
2574 UINT itemID; | |
2575 HWND hwndItem; | |
2576 DWORD itemData; | |
2577 } DELETEITEMSTRUCT, *LPDELETEITEMSTRUCT; | |
2578 | |
2579 | |
2580 typedef struct | |
2581 { | |
2582 UINT CtlType; | |
2583 UINT CtlID; | |
2584 HWND hwndItem; | |
2585 UINT itemID1; | |
2586 DWORD itemData1; | |
2587 UINT itemID2; | |
2588 DWORD itemData2; | |
2589 DWORD dwLocaleId; | |
2590 } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT; | |
2591 | |
2592 | |
2593 /* WM_KEYUP/DOWN/CHAR HIWORD(lParam) flags */ | |
2594 #define KF_EXTENDED 0x0100 | |
2595 #define KF_DLGMODE 0x0800 | |
2596 #define KF_MENUMODE 0x1000 | |
2597 #define KF_ALTDOWN 0x2000 | |
2598 #define KF_REPEAT 0x4000 | |
2599 #define KF_UP 0x8000 | |
2600 | |
2601 /* Virtual key codes */ | |
2602 #define VK_LBUTTON 0x01 | |
2603 #define VK_RBUTTON 0x02 | |
2604 #define VK_CANCEL 0x03 | |
2605 #define VK_MBUTTON 0x04 | |
2606 /* 0x05-0x07 Undefined */ | |
2607 #define VK_BACK 0x08 | |
2608 #define VK_TAB 0x09 | |
2609 /* 0x0A-0x0B Undefined */ | |
2610 #define VK_CLEAR 0x0C | |
2611 #define VK_RETURN 0x0D | |
2612 /* 0x0E-0x0F Undefined */ | |
2613 #define VK_SHIFT 0x10 | |
2614 #define VK_CONTROL 0x11 | |
2615 #define VK_MENU 0x12 | |
2616 #define VK_PAUSE 0x13 | |
2617 #define VK_CAPITAL 0x14 | |
2618 /* 0x15-0x19 Reserved for Kanji systems */ | |
2619 /* 0x1A Undefined */ | |
2620 #define VK_ESCAPE 0x1B | |
2621 /* 0x1C-0x1F Reserved for Kanji systems */ | |
2622 #define VK_SPACE 0x20 | |
2623 #define VK_PRIOR 0x21 | |
2624 #define VK_NEXT 0x22 | |
2625 #define VK_END 0x23 | |
2626 #define VK_HOME 0x24 | |
2627 #define VK_LEFT 0x25 | |
2628 #define VK_UP 0x26 | |
2629 #define VK_RIGHT 0x27 | |
2630 #define VK_DOWN 0x28 | |
2631 #define VK_SELECT 0x29 | |
2632 #define VK_PRINT 0x2A /* OEM specific in Windows 3.1 SDK */ | |
2633 #define VK_EXECUTE 0x2B | |
2634 #define VK_SNAPSHOT 0x2C | |
2635 #define VK_INSERT 0x2D | |
2636 #define VK_DELETE 0x2E | |
2637 #define VK_HELP 0x2F | |
2638 #define VK_0 0x30 | |
2639 #define VK_1 0x31 | |
2640 #define VK_2 0x32 | |
2641 #define VK_3 0x33 | |
2642 #define VK_4 0x34 | |
2643 #define VK_5 0x35 | |
2644 #define VK_6 0x36 | |
2645 #define VK_7 0x37 | |
2646 #define VK_8 0x38 | |
2647 #define VK_9 0x39 | |
2648 /* 0x3A-0x40 Undefined */ | |
2649 #define VK_A 0x41 | |
2650 #define VK_B 0x42 | |
2651 #define VK_C 0x43 | |
2652 #define VK_D 0x44 | |
2653 #define VK_E 0x45 | |
2654 #define VK_F 0x46 | |
2655 #define VK_G 0x47 | |
2656 #define VK_H 0x48 | |
2657 #define VK_I 0x49 | |
2658 #define VK_J 0x4A | |
2659 #define VK_K 0x4B | |
2660 #define VK_L 0x4C | |
2661 #define VK_M 0x4D | |
2662 #define VK_N 0x4E | |
2663 #define VK_O 0x4F | |
2664 #define VK_P 0x50 | |
2665 #define VK_Q 0x51 | |
2666 #define VK_R 0x52 | |
2667 #define VK_S 0x53 | |
2668 #define VK_T 0x54 | |
2669 #define VK_U 0x55 | |
2670 #define VK_V 0x56 | |
2671 #define VK_W 0x57 | |
2672 #define VK_X 0x58 | |
2673 #define VK_Y 0x59 | |
2674 #define VK_Z 0x5A | |
2675 | |
2676 #define VK_LWIN 0x5B | |
2677 #define VK_RWIN 0x5C | |
2678 #define VK_APPS 0x5D | |
2679 /* 0x5E-0x5F Unassigned */ | |
2680 #define VK_NUMPAD0 0x60 | |
2681 #define VK_NUMPAD1 0x61 | |
2682 #define VK_NUMPAD2 0x62 | |
2683 #define VK_NUMPAD3 0x63 | |
2684 #define VK_NUMPAD4 0x64 | |
2685 #define VK_NUMPAD5 0x65 | |
2686 #define VK_NUMPAD6 0x66 | |
2687 #define VK_NUMPAD7 0x67 | |
2688 #define VK_NUMPAD8 0x68 | |
2689 #define VK_NUMPAD9 0x69 | |
2690 #define VK_MULTIPLY 0x6A | |
2691 #define VK_ADD 0x6B | |
2692 #define VK_SEPARATOR 0x6C | |
2693 #define VK_SUBTRACT 0x6D | |
2694 #define VK_DECIMAL 0x6E | |
2695 #define VK_DIVIDE 0x6F | |
2696 #define VK_F1 0x70 | |
2697 #define VK_F2 0x71 | |
2698 #define VK_F3 0x72 | |
2699 #define VK_F4 0x73 | |
2700 #define VK_F5 0x74 | |
2701 #define VK_F6 0x75 | |
2702 #define VK_F7 0x76 | |
2703 #define VK_F8 0x77 | |
2704 #define VK_F9 0x78 | |
2705 #define VK_F10 0x79 | |
2706 #define VK_F11 0x7A | |
2707 #define VK_F12 0x7B | |
2708 #define VK_F13 0x7C | |
2709 #define VK_F14 0x7D | |
2710 #define VK_F15 0x7E | |
2711 #define VK_F16 0x7F | |
2712 #define VK_F17 0x80 | |
2713 #define VK_F18 0x81 | |
2714 #define VK_F19 0x82 | |
2715 #define VK_F20 0x83 | |
2716 #define VK_F21 0x84 | |
2717 #define VK_F22 0x85 | |
2718 #define VK_F23 0x86 | |
2719 #define VK_F24 0x87 | |
2720 /* 0x88-0x8F Unassigned */ | |
2721 #define VK_NUMLOCK 0x90 | |
2722 #define VK_SCROLL 0x91 | |
2723 /* 0x92-0x9F Unassigned */ | |
2724 /* | |
2725 * differencing between right and left shift/control/alt key. | |
2726 * Used only by GetAsyncKeyState() and GetKeyState(). | |
2727 */ | |
2728 #define VK_LSHIFT 0xA0 | |
2729 #define VK_RSHIFT 0xA1 | |
2730 #define VK_LCONTROL 0xA2 | |
2731 #define VK_RCONTROL 0xA3 | |
2732 #define VK_LMENU 0xA4 | |
2733 #define VK_RMENU 0xA5 | |
2734 /* 0xA6-0xB9 Unassigned */ | |
2735 #define VK_OEM_1 0xBA | |
2736 #define VK_OEM_PLUS 0xBB | |
2737 #define VK_OEM_COMMA 0xBC | |
2738 #define VK_OEM_MINUS 0xBD | |
2739 #define VK_OEM_PERIOD 0xBE | |
2740 #define VK_OEM_2 0xBF | |
2741 #define VK_OEM_3 0xC0 | |
2742 /* 0xC1-0xDA Unassigned */ | |
2743 #define VK_OEM_4 0xDB | |
2744 #define VK_OEM_5 0xDC | |
2745 #define VK_OEM_6 0xDD | |
2746 #define VK_OEM_7 0xDE | |
2747 /* 0xDF-0xE4 OEM specific */ | |
2748 | |
2749 #define VK_PROCESSKEY 0xE5 | |
2750 | |
2751 /* 0xE6 OEM specific */ | |
2752 /* 0xE7-0xE8 Unassigned */ | |
2753 /* 0xE9-0xF5 OEM specific */ | |
2754 | |
2755 #define VK_ATTN 0xF6 | |
2756 #define VK_CRSEL 0xF7 | |
2757 #define VK_EXSEL 0xF8 | |
2758 #define VK_EREOF 0xF9 | |
2759 #define VK_PLAY 0xFA | |
2760 #define VK_ZOOM 0xFB | |
2761 #define VK_NONAME 0xFC | |
2762 #define VK_PA1 0xFD | |
2763 #define VK_OEM_CLEAR 0xFE | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
2764 |
1 | 2765 /* Key status flags for mouse events */ |
2766 #define MK_LBUTTON 0x0001 | |
2767 #define MK_RBUTTON 0x0002 | |
2768 #define MK_SHIFT 0x0004 | |
2769 #define MK_CONTROL 0x0008 | |
2770 #define MK_MBUTTON 0x0010 | |
2771 | |
2772 /* Queue status flags */ | |
2773 #define QS_KEY 0x0001 | |
2774 #define QS_MOUSEMOVE 0x0002 | |
2775 #define QS_MOUSEBUTTON 0x0004 | |
2776 #define QS_MOUSE (QS_MOUSEMOVE | QS_MOUSEBUTTON) | |
2777 #define QS_POSTMESSAGE 0x0008 | |
2778 #define QS_TIMER 0x0010 | |
2779 #define QS_PAINT 0x0020 | |
2780 #define QS_SENDMESSAGE 0x0040 | |
2781 #define QS_HOTKEY 0x0080 | |
2782 #define QS_INPUT (QS_MOUSE | QS_KEY) | |
2783 #define QS_ALLEVENTS (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY) | |
2784 #define QS_ALLINPUT (QS_ALLEVENTS | QS_SENDMESSAGE) | |
2785 | |
2786 #define DDL_READWRITE 0x0000 | |
2787 #define DDL_READONLY 0x0001 | |
2788 #define DDL_HIDDEN 0x0002 | |
2789 #define DDL_SYSTEM 0x0004 | |
2790 #define DDL_DIRECTORY 0x0010 | |
2791 #define DDL_ARCHIVE 0x0020 | |
2792 | |
2793 #define DDL_POSTMSGS 0x2000 | |
2794 #define DDL_DRIVES 0x4000 | |
2795 #define DDL_EXCLUSIVE 0x8000 | |
2796 | |
2797 /* Shell hook values */ | |
2798 #define HSHELL_WINDOWCREATED 1 | |
2799 #define HSHELL_WINDOWDESTROYED 2 | |
2800 #define HSHELL_ACTIVATESHELLWINDOW 3 | |
2801 | |
2802 /* Predefined Clipboard Formats */ | |
2803 #define CF_TEXT 1 | |
2804 #define CF_BITMAP 2 | |
2805 #define CF_METAFILEPICT 3 | |
2806 #define CF_SYLK 4 | |
2807 #define CF_DIF 5 | |
2808 #define CF_TIFF 6 | |
2809 #define CF_OEMTEXT 7 | |
2810 #define CF_DIB 8 | |
2811 #define CF_PALETTE 9 | |
2812 #define CF_PENDATA 10 | |
2813 #define CF_RIFF 11 | |
2814 #define CF_WAVE 12 | |
2815 #define CF_ENHMETAFILE 14 | |
2816 #define CF_HDROP 15 | |
2817 #define CF_LOCALE 16 | |
2818 #define CF_MAX 17 | |
2819 | |
2820 #define CF_OWNERDISPLAY 0x0080 | |
2821 #define CF_DSPTEXT 0x0081 | |
2822 #define CF_DSPBITMAP 0x0082 | |
2823 #define CF_DSPMETAFILEPICT 0x0083 | |
2824 | |
2825 /* "Private" formats don't get GlobalFree()'d */ | |
2826 #define CF_PRIVATEFIRST 0x0200 | |
2827 #define CF_PRIVATELAST 0x02FF | |
2828 | |
2829 /* "GDIOBJ" formats do get DeleteObject()'d */ | |
2830 #define CF_GDIOBJFIRST 0x0300 | |
2831 #define CF_GDIOBJLAST 0x03FF | |
2832 | |
2833 | |
2834 /* DragObject stuff */ | |
2835 | |
24406 | 2836 typedef struct |
1 | 2837 { |
2838 HWND16 hWnd; | |
2839 HANDLE16 hScope; | |
2840 WORD wFlags; | |
2841 HANDLE16 hList; | |
2842 HANDLE16 hOfStruct; | |
24406 | 2843 POINT16 pt WINE_PACKED; |
2844 LONG l WINE_PACKED; | |
1 | 2845 } DRAGINFO, *LPDRAGINFO; |
2846 | |
2847 #define DRAGOBJ_PROGRAM 0x0001 | |
2848 #define DRAGOBJ_DATA 0x0002 | |
2849 #define DRAGOBJ_DIRECTORY 0x0004 | |
2850 #define DRAGOBJ_MULTIPLE 0x0008 | |
2851 #define DRAGOBJ_EXTERNAL 0x8000 | |
2852 | |
2853 #define DRAG_PRINT 0x544E5250 | |
2854 #define DRAG_FILE 0x454C4946 | |
2855 | |
2856 /* types of LoadImage */ | |
2857 #define IMAGE_BITMAP 0 | |
2858 #define IMAGE_ICON 1 | |
2859 #define IMAGE_CURSOR 2 | |
2860 #define IMAGE_ENHMETAFILE 3 | |
2861 | |
2862 /* loadflags to LoadImage */ | |
2863 #define LR_DEFAULTCOLOR 0x0000 | |
2864 #define LR_MONOCHROME 0x0001 | |
2865 #define LR_COLOR 0x0002 | |
2866 #define LR_COPYRETURNORG 0x0004 | |
2867 #define LR_COPYDELETEORG 0x0008 | |
2868 #define LR_LOADFROMFILE 0x0010 | |
2869 #define LR_LOADTRANSPARENT 0x0020 | |
2870 #define LR_DEFAULTSIZE 0x0040 | |
2871 #define LR_VGA_COLOR 0x0080 | |
2872 #define LR_LOADMAP3DCOLORS 0x1000 | |
2873 #define LR_CREATEDIBSECTION 0x2000 | |
2874 #define LR_COPYFROMRESOURCE 0x4000 | |
2875 #define LR_SHARED 0x8000 | |
2876 | |
2877 /* Flags for DrawIconEx. */ | |
2878 #define DI_MASK 1 | |
2879 #define DI_IMAGE 2 | |
2880 #define DI_NORMAL (DI_MASK | DI_IMAGE) | |
2881 #define DI_COMPAT 4 | |
2882 #define DI_DEFAULTSIZE 8 | |
2883 | |
2884 /* misc messages */ | |
2885 #define WM_CPL_LAUNCH (WM_USER + 1000) | |
2886 #define WM_CPL_LAUNCHED (WM_USER + 1001) | |
2887 | |
2888 /* WM_NOTIFYFORMAT commands and return values */ | |
2889 #define NFR_ANSI 1 | |
2890 #define NFR_UNICODE 2 | |
2891 #define NF_QUERY 3 | |
2892 #define NF_REQUERY 4 | |
2893 | |
2894 #include "poppack.h" | |
2895 #define EnumTaskWindows(handle,proc,lparam) \ | |
2896 EnumThreadWindows(handle,proc,lparam) | |
2897 #define OemToAnsiA OemToCharA | |
2898 #define OemToAnsiW OemToCharW | |
2899 #define OemToAnsi WINELIB_NAME_AW(OemToAnsi) | |
2900 #define OemToAnsiBuffA OemToCharBuffA | |
2901 #define OemToAnsiBuffW OemToCharBuffW | |
2902 #define OemToAnsiBuff WINELIB_NAME_AW(OemToAnsiBuff) | |
2903 #define AnsiToOemA CharToOemA | |
2904 #define AnsiToOemW CharToOemW | |
2905 #define AnsiToOem WINELIB_NAME_AW(AnsiToOem) | |
2906 #define AnsiToOemBuffA CharToOemBuffA | |
2907 #define AnsiToOemBuffW CharToOemBuffW | |
2908 #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff) | |
2909 /* NOTE: This is SYSTEM.3, not USER.182, which is also named KillSystemTimer */ | |
2910 WORD WINAPI SYSTEM_KillSystemTimer( WORD ); | |
2911 | |
2912 /* Extra functions that don't exist in the Windows API */ | |
2913 | |
2914 HPEN WINAPI GetSysColorPen(INT); | |
2915 INT WINAPI LoadMessageA(HMODULE,UINT,WORD,LPSTR,INT); | |
2916 INT WINAPI LoadMessageW(HMODULE,UINT,WORD,LPWSTR,INT); | |
2917 | |
2918 VOID WINAPI ScreenSwitchEnable16(WORD); | |
2919 | |
2920 #define WC_DIALOG (LPSTR)((DWORD)((WORD)( 0x8002))) | |
2921 | |
26045 | 2922 #endif /* MPLAYER_WINUSER_H */ |