annotate loader/wine/winuser.h @ 22671:99db91e74443

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