Commit | Line | Data |
---|---|---|
7391216e | 1 | ///////////////////////////////////////////////////////////////////////////// |
05e3a383 | 2 | // Name: wx/msw/missing.h |
7391216e | 3 | // Purpose: Declarations for parts of the Win32 SDK that are missing in |
05e3a383 | 4 | // the versions that come with some compilers |
7391216e VS |
5 | // Created: 2002/04/23 |
6 | // RCS-ID: $Id$ | |
05e3a383 | 7 | // Copyright: (c) 2002 Mattia Barbon |
65571936 | 8 | // Licence: wxWindows licence |
7391216e VS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_MISSING_H_ | |
12 | #define _WX_MISSING_H_ | |
13 | ||
90a752c2 JS |
14 | /* |
15 | * The following are required for VC++ 6. | |
16 | */ | |
7391216e | 17 | |
8003f8de DS |
18 | // Needed by cursor.cpp |
19 | #ifndef IDC_HAND | |
20 | #define IDC_HAND MAKEINTRESOURCE(32649) | |
21 | #endif | |
22 | ||
90a752c2 JS |
23 | // Needed by strconv.cpp |
24 | #ifndef WC_NO_BEST_FIT_CHARS | |
25 | #define WC_NO_BEST_FIT_CHARS 0x400 | |
7391216e VS |
26 | #endif |
27 | ||
90a752c2 JS |
28 | #ifndef WM_CONTEXTMENU |
29 | #define WM_CONTEXTMENU 0x007B | |
3bce6687 JS |
30 | #endif |
31 | ||
2f0312f0 VZ |
32 | #ifndef WM_CHANGEUISTATE |
33 | #define WM_CHANGEUISTATE 0x0127 | |
34 | #endif | |
35 | ||
90a752c2 JS |
36 | #ifndef WM_UPDATEUISTATE |
37 | #define WM_UPDATEUISTATE 0x0128 | |
3bce6687 JS |
38 | #endif |
39 | ||
2f0312f0 VZ |
40 | #ifndef WM_QUERYUISTATE |
41 | #define WM_QUERYUISTATE 0x0129 | |
1ca78aa1 JS |
42 | #endif |
43 | ||
90a752c2 JS |
44 | #ifndef WM_PRINTCLIENT |
45 | #define WM_PRINTCLIENT 0x318 | |
3bce6687 JS |
46 | #endif |
47 | ||
2f0312f0 VZ |
48 | #ifndef DT_HIDEPREFIX |
49 | #define DT_HIDEPREFIX 0x00100000 | |
50 | #endif | |
51 | ||
90a752c2 | 52 | // Needed by toplevel.cpp |
3ef092d6 VZ |
53 | #ifndef UIS_SET |
54 | #define UIS_SET 1 | |
55 | #define UIS_CLEAR 2 | |
90a752c2 | 56 | #define UIS_INITIALIZE 3 |
3bce6687 JS |
57 | #endif |
58 | ||
90a752c2 JS |
59 | #ifndef UISF_HIDEFOCUS |
60 | #define UISF_HIDEFOCUS 1 | |
7391216e VS |
61 | #endif |
62 | ||
90a752c2 JS |
63 | #ifndef UISF_HIDEACCEL |
64 | #define UISF_HIDEACCEL 2 | |
49bbd59b | 65 | #endif |
2b5f62a0 | 66 | |
90a752c2 JS |
67 | #ifndef OFN_EXPLORER |
68 | #define OFN_EXPLORER 0x00080000 | |
521e585f VZ |
69 | #endif |
70 | ||
90a752c2 JS |
71 | #ifndef OFN_ENABLESIZING |
72 | #define OFN_ENABLESIZING 0x00800000 | |
8318f30f CE |
73 | #endif |
74 | ||
90a752c2 JS |
75 | // Needed by window.cpp |
76 | #if wxUSE_MOUSEWHEEL | |
77 | #ifndef WM_MOUSEWHEEL | |
78 | #define WM_MOUSEWHEEL 0x020A | |
79 | #endif | |
b9e52a19 VZ |
80 | #ifndef WM_MOUSEHWHEEL |
81 | #define WM_MOUSEHWHEEL 0x020E | |
82 | #endif | |
90a752c2 JS |
83 | #ifndef WHEEL_DELTA |
84 | #define WHEEL_DELTA 120 | |
85 | #endif | |
86 | #ifndef SPI_GETWHEELSCROLLLINES | |
87 | #define SPI_GETWHEELSCROLLLINES 104 | |
88 | #endif | |
89 | #endif // wxUSE_MOUSEWHEEL | |
8318f30f | 90 | |
90a752c2 JS |
91 | // Needed by window.cpp |
92 | #ifndef VK_OEM_1 | |
93 | #define VK_OEM_1 0xBA | |
94 | #define VK_OEM_2 0xBF | |
95 | #define VK_OEM_3 0xC0 | |
96 | #define VK_OEM_4 0xDB | |
97 | #define VK_OEM_5 0xDC | |
98 | #define VK_OEM_6 0xDD | |
99 | #define VK_OEM_7 0xDE | |
fc4070fc | 100 | #define VK_OEM_102 0xE2 |
8318f30f CE |
101 | #endif |
102 | ||
90a752c2 JS |
103 | #ifndef VK_OEM_COMMA |
104 | #define VK_OEM_PLUS 0xBB | |
105 | #define VK_OEM_COMMA 0xBC | |
106 | #define VK_OEM_MINUS 0xBD | |
107 | #define VK_OEM_PERIOD 0xBE | |
dd54f5d3 | 108 | #endif |
7391216e | 109 | |
ddec9f1e JS |
110 | #ifndef SM_TABLETPC |
111 | #define SM_TABLETPC 86 | |
112 | #endif | |
113 | ||
114 | #ifndef INKEDIT_CLASS | |
115 | # define INKEDIT_CLASSW L"INKEDIT" | |
116 | # ifdef UNICODE | |
117 | # define INKEDIT_CLASS INKEDIT_CLASSW | |
118 | # else | |
119 | # define INKEDIT_CLASS "INKEDIT" | |
120 | # endif | |
121 | #endif | |
122 | ||
123 | #ifndef EM_SETINKINSERTMODE | |
124 | # define EM_SETINKINSERTMODE (WM_USER + 0x0204) | |
125 | #endif | |
126 | ||
127 | #ifndef EM_SETUSEMOUSEFORINPUT | |
128 | #define EM_SETUSEMOUSEFORINPUT (WM_USER + 0x224) | |
129 | #endif | |
130 | ||
e7b8da22 JS |
131 | #ifndef TPM_RECURSE |
132 | #define TPM_RECURSE 1 | |
133 | #endif | |
134 | ||
50f3c41d | 135 | |
801a5441 VZ |
136 | #ifndef WS_EX_LAYOUTRTL |
137 | #define WS_EX_LAYOUTRTL 0x00400000 | |
138 | #endif | |
139 | ||
2e992e06 VZ |
140 | #ifndef WS_EX_COMPOSITED |
141 | #define WS_EX_COMPOSITED 0x02000000L | |
142 | #endif | |
143 | ||
50f3c41d | 144 | #ifndef WS_EX_LAYERED |
801a5441 | 145 | #define WS_EX_LAYERED 0x00080000 |
50f3c41d RD |
146 | #endif |
147 | ||
148 | #ifndef LWA_ALPHA | |
149 | #define LWA_ALPHA 2 | |
150 | #endif | |
151 | ||
261fb041 WS |
152 | #ifndef QS_ALLPOSTMESSAGE |
153 | #define QS_ALLPOSTMESSAGE 0 | |
154 | #endif | |
155 | ||
a87f2821 MW |
156 | /* |
157 | * The following are required for VC++ 5 when the PSDK is not available. | |
158 | */ | |
159 | ||
160 | #if defined __VISUALC__ && __VISUALC__ <= 1100 | |
161 | ||
162 | #ifndef VER_NT_WORKSTATION | |
163 | ||
164 | typedef struct _OSVERSIONINFOEXA { | |
165 | DWORD dwOSVersionInfoSize; | |
166 | DWORD dwMajorVersion; | |
167 | DWORD dwMinorVersion; | |
168 | DWORD dwBuildNumber; | |
169 | DWORD dwPlatformId; | |
170 | CHAR szCSDVersion[128]; | |
171 | WORD wServicePackMajor; | |
172 | WORD wServicePackMinor; | |
173 | WORD wSuiteMask; | |
174 | BYTE wProductType; | |
175 | BYTE wReserved; | |
176 | } OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA; | |
177 | typedef struct _OSVERSIONINFOEXW { | |
178 | DWORD dwOSVersionInfoSize; | |
179 | DWORD dwMajorVersion; | |
180 | DWORD dwMinorVersion; | |
181 | DWORD dwBuildNumber; | |
182 | DWORD dwPlatformId; | |
183 | WCHAR szCSDVersion[128]; | |
184 | WORD wServicePackMajor; | |
185 | WORD wServicePackMinor; | |
186 | WORD wSuiteMask; | |
187 | BYTE wProductType; | |
188 | BYTE wReserved; | |
189 | } OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW; | |
190 | ||
191 | #ifdef UNICODE | |
192 | typedef OSVERSIONINFOW OSVERSIONINFO,*POSVERSIONINFO,*LPOSVERSIONINFO; | |
193 | typedef OSVERSIONINFOEXW OSVERSIONINFOEX,*POSVERSIONINFOEX,*LPOSVERSIONINFOEX; | |
194 | #else | |
195 | typedef OSVERSIONINFOA OSVERSIONINFO,*POSVERSIONINFO,*LPOSVERSIONINFO; | |
196 | typedef OSVERSIONINFOEXA OSVERSIONINFOEX,*POSVERSIONINFOEX,*LPOSVERSIONINFOEX; | |
197 | #endif | |
198 | ||
199 | #endif // defined VER_NT_WORKSTATION | |
200 | ||
201 | #ifndef CP_SYMBOL | |
202 | #define CP_SYMBOL 42 | |
203 | #endif | |
204 | ||
205 | // NMLVCUSTOMDRAW originally didn't have the iSubItem member. It was added | |
206 | // with IE4, as was IPN_FIRST which is used as a test :-(. | |
207 | // | |
1b88201f | 208 | #ifndef IPN_FIRST |
a87f2821 MW |
209 | |
210 | typedef struct wxtagNMLVCUSTOMDRAW_ { | |
211 | NMCUSTOMDRAW nmcd; | |
212 | COLORREF clrText; | |
213 | COLORREF clrTextBk; | |
214 | int iSubItem; | |
215 | } wxNMLVCUSTOMDRAW_, *wxLPNMLVCUSTOMDRAW_; | |
216 | ||
217 | #define NMLVCUSTOMDRAW wxNMLVCUSTOMDRAW_ | |
218 | #define LPNMLVCUSTOMDRAW wxLPNMLVCUSTOMDRAW_ | |
219 | ||
1b88201f | 220 | #endif // defined IPN_FIRST |
a87f2821 MW |
221 | |
222 | #endif // defined __VISUALC__ && __VISUALC__ <= 1100 | |
223 | ||
33f4afdb VZ |
224 | // ---------------------------------------------------------------------------- |
225 | // menu stuff | |
226 | // ---------------------------------------------------------------------------- | |
227 | ||
228 | #ifndef MIIM_BITMAP | |
229 | #define MIIM_STRING 0x00000040 | |
230 | #define MIIM_BITMAP 0x00000080 | |
231 | #define MIIM_FTYPE 0x00000100 | |
232 | #define HBMMENU_CALLBACK ((HBITMAP) -1) | |
233 | ||
234 | typedef struct tagMENUINFO | |
235 | { | |
236 | DWORD cbSize; | |
237 | DWORD fMask; | |
238 | DWORD dwStyle; | |
239 | UINT cyMax; | |
240 | HBRUSH hbrBack; | |
241 | DWORD dwContextHelpID; | |
242 | DWORD dwMenuData; | |
243 | } MENUINFO, FAR *LPMENUINFO; | |
244 | #endif // MIIM_BITMAP &c | |
245 | ||
e2478fde | 246 | // ---------------------------------------------------------------------------- |
659d0ee8 VZ |
247 | // definitions related to ListView and Header common controls, needed by |
248 | // msw/listctrl.cpp and msw/headerctrl.cpp | |
e2478fde VZ |
249 | // ---------------------------------------------------------------------------- |
250 | ||
659d0ee8 VZ |
251 | #ifndef I_IMAGENONE |
252 | #define I_IMAGENONE (-2) | |
253 | #endif | |
254 | ||
aec26358 WS |
255 | #ifndef LVS_EX_FULLROWSELECT |
256 | #define LVS_EX_FULLROWSELECT 0x00000020 | |
257 | #endif | |
258 | ||
2036bdd3 VZ |
259 | // LVS_EX_LABELTIP is not supported by Windows CE, don't define it there |
260 | #if !defined(LVS_EX_LABELTIP) && !defined(__WXWINCE__) | |
90a752c2 | 261 | #define LVS_EX_LABELTIP 0x00004000 |
e2478fde VZ |
262 | #endif |
263 | ||
05886ed3 RD |
264 | #ifndef LVS_EX_SUBITEMIMAGES |
265 | #define LVS_EX_SUBITEMIMAGES 0x00000002 | |
266 | #endif | |
267 | ||
06525673 JS |
268 | #ifndef HDN_GETDISPINFOW |
269 | #define HDN_GETDISPINFOW (HDN_FIRST-29) | |
270 | #endif | |
271 | ||
a58c5d3e VZ |
272 | #ifndef HDS_HOTTRACK |
273 | #define HDS_HOTTRACK 4 | |
274 | #endif | |
8eb4d1a1 VZ |
275 | #ifndef HDS_FLAT |
276 | #define HDS_FLAT 0x0200 | |
277 | #endif | |
a58c5d3e | 278 | |
9e06a15f VZ |
279 | #ifndef HDF_SORTUP |
280 | #define HDF_SORTUP 0x0400 | |
281 | #define HDF_SORTDOWN 0x0200 | |
282 | #endif | |
283 | ||
90a752c2 | 284 | /* |
c6c2445d JS |
285 | * In addition to the above, the following are required for several compilers. |
286 | */ | |
287 | ||
288 | #if !defined(CCS_VERT) | |
289 | #define CCS_VERT 0x00000080L | |
290 | #endif | |
291 | ||
664f15dc JS |
292 | #if !defined(CCS_RIGHT) |
293 | #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM) | |
294 | #endif | |
295 | ||
c6c2445d JS |
296 | #if !defined(TB_SETDISABLEDIMAGELIST) |
297 | #define TB_SETDISABLEDIMAGELIST (WM_USER + 54) | |
298 | #endif // !defined(TB_SETDISABLEDIMAGELIST) | |
299 | ||
300 | #ifndef CFM_BACKCOLOR | |
301 | #define CFM_BACKCOLOR 0x04000000 | |
302 | #endif | |
303 | ||
8b5d41cc MW |
304 | #ifndef HANGUL_CHARSET |
305 | #define HANGUL_CHARSET 129 | |
306 | #endif | |
307 | ||
308 | #ifndef CCM_SETUNICODEFORMAT | |
309 | #define CCM_SETUNICODEFORMAT 8197 | |
310 | #endif | |
311 | ||
312 | // ---------------------------------------------------------------------------- | |
313 | // Tree control | |
314 | // ---------------------------------------------------------------------------- | |
315 | ||
316 | #ifndef TV_FIRST | |
317 | #define TV_FIRST 0x1100 | |
318 | #endif | |
319 | ||
320 | #ifndef TVS_FULLROWSELECT | |
321 | #define TVS_FULLROWSELECT 0x1000 | |
322 | #endif | |
323 | ||
324 | #ifndef TVM_SETBKCOLOR | |
325 | #define TVM_SETBKCOLOR (TV_FIRST + 29) | |
326 | #define TVM_SETTEXTCOLOR (TV_FIRST + 30) | |
327 | #endif | |
328 | ||
c6c2445d JS |
329 | /* |
330 | * The following are required for BC++ 5.5 (none at present.) | |
90a752c2 | 331 | */ |
e2478fde | 332 | |
90a752c2 | 333 | /* |
c6c2445d | 334 | * The following are specifically required for Digital Mars C++ |
90a752c2 | 335 | */ |
e2478fde | 336 | |
90a752c2 | 337 | #ifdef __DMC__ |
e2478fde | 338 | |
1c7ae45a | 339 | #ifndef VER_NT_WORKSTATION |
4aa14001 WS |
340 | typedef struct _OSVERSIONINFOEX { |
341 | DWORD dwOSVersionInfoSize; | |
342 | DWORD dwMajorVersion; | |
343 | DWORD dwMinorVersion; | |
344 | DWORD dwBuildNumber; | |
345 | DWORD dwPlatformId; | |
346 | TCHAR szCSDVersion[ 128 ]; | |
347 | WORD wServicePackMajor; | |
348 | WORD wServicePackMinor; | |
349 | WORD wSuiteMask; | |
350 | BYTE wProductType; | |
351 | BYTE wReserved; | |
352 | } OSVERSIONINFOEX; | |
1c7ae45a | 353 | #endif // !defined(VER_NT_WORKSTATION) |
4aa14001 WS |
354 | |
355 | #ifndef _TrackMouseEvent | |
356 | #define _TrackMouseEvent TrackMouseEvent | |
e2478fde VZ |
357 | #endif |
358 | ||
90a752c2 JS |
359 | #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE |
360 | #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54) | |
e2478fde VZ |
361 | #endif |
362 | ||
a6f7daee WS |
363 | #ifndef LVM_GETSUBITEMRECT |
364 | #define LVM_GETSUBITEMRECT (0x1000 + 56) | |
365 | #endif | |
366 | ||
90a752c2 JS |
367 | #ifndef LVCF_IMAGE |
368 | #define LVCF_IMAGE 0x0010 | |
e2478fde VZ |
369 | #endif |
370 | ||
90a752c2 JS |
371 | #ifndef Header_GetItemRect |
372 | #define Header_GetItemRect(w,i,r) \ | |
373 | (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r)) | |
3ec4107d MB |
374 | #endif |
375 | ||
90a752c2 JS |
376 | #ifndef HDM_GETITEMRECT |
377 | #define HDM_GETITEMRECT (HDM_FIRST+7) | |
3ec4107d MB |
378 | #endif |
379 | ||
90a752c2 JS |
380 | #ifndef ListView_GetHeader |
381 | #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0) | |
3ec4107d MB |
382 | #endif |
383 | ||
a6f7daee WS |
384 | #ifndef ListView_GetSubItemRect |
385 | #define ListView_GetSubItemRect(w, i, s, c, p) (HWND)SendMessage(w,LVM_GETSUBITEMRECT,i, ((p) ? ((((LPRECT)(p))->top = s), (((LPRECT)(p))->left = c), (LPARAM)(p)) : (LPARAM)(LPRECT)NULL)) | |
386 | #endif | |
387 | ||
90a752c2 JS |
388 | #ifndef LVM_GETHEADER |
389 | #define LVM_GETHEADER (LVM_FIRST+31) | |
3ec4107d MB |
390 | #endif |
391 | ||
e229d82e VS |
392 | #ifndef HDLAYOUT |
393 | #define HDLAYOUT HD_LAYOUT | |
394 | #endif | |
395 | ||
396 | #ifndef HDITEM | |
397 | #define HDITEM HD_ITEM | |
398 | #endif | |
399 | ||
400 | #ifndef NMHEADER | |
401 | #define NMHEADER HD_NOTIFY | |
402 | #endif | |
403 | ||
56873923 VZ |
404 | #ifndef HDS_DRAGDROP |
405 | #define HDS_DRAGDROP 0x0040 | |
406 | #endif | |
e229d82e | 407 | #ifndef HDS_FULLDRAG |
56873923 | 408 | #define HDS_FULLDRAG 0x0080 |
e229d82e VS |
409 | #endif |
410 | ||
56873923 | 411 | |
e229d82e VS |
412 | #ifndef HDN_BEGINDRAG |
413 | #define HDN_BEGINDRAG (HDN_FIRST - 11) | |
414 | #endif | |
415 | ||
416 | #ifndef HDN_ENDDRAG | |
417 | #define HDN_ENDDRAG (HDN_FIRST - 10) | |
418 | #endif | |
419 | ||
90a752c2 JS |
420 | #ifndef LVSICF_NOSCROLL |
421 | #define LVSICF_NOINVALIDATEALL 0x0001 | |
422 | #define LVSICF_NOSCROLL 0x0002 | |
3ec4107d MB |
423 | #endif |
424 | ||
4aa14001 WS |
425 | #ifndef CP_SYMBOL |
426 | #define CP_SYMBOL 42 | |
427 | #endif | |
428 | ||
3ea19afd WS |
429 | // ---------------------------------------------------------------------------- |
430 | // wxDisplay | |
431 | // ---------------------------------------------------------------------------- | |
432 | ||
433 | // The windows headers with Digital Mars lack some typedefs. | |
434 | // typedef them as my_XXX and then #define to rename to XXX in case | |
435 | // a newer version of Digital Mars fixes the headers | |
436 | // (or up to date PSDK is in use with older version) | |
437 | // also we use any required definition (MONITOR_DEFAULTTONULL) to recognize | |
438 | // whether whole missing block needs to be included | |
439 | ||
440 | #ifndef MONITOR_DEFAULTTONULL | |
441 | ||
442 | #define HMONITOR_DECLARED | |
443 | DECLARE_HANDLE(HMONITOR); | |
444 | typedef BOOL(CALLBACK* my_MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM); | |
445 | #define MONITORENUMPROC my_MONITORENUMPROC | |
446 | typedef struct my_tagMONITORINFO { | |
447 | DWORD cbSize; | |
448 | RECT rcMonitor; | |
449 | RECT rcWork; | |
450 | DWORD dwFlags; | |
451 | } my_MONITORINFO,*my_LPMONITORINFO; | |
452 | #define MONITORINFO my_MONITORINFO | |
453 | #define LPMONITORINFO my_LPMONITORINFO | |
454 | ||
455 | typedef struct my_MONITORINFOEX : public my_tagMONITORINFO | |
456 | { | |
457 | TCHAR szDevice[CCHDEVICENAME]; | |
458 | } my_MONITORINFOEX, *my_LPMONITORINFOEX; | |
459 | #define MONITORINFOEX my_MONITORINFOEX | |
460 | #define LPMONITORINFOEX my_LPMONITORINFOEX | |
461 | ||
462 | #ifndef MONITOR_DEFAULTTONULL | |
463 | #define MONITOR_DEFAULTTONULL 0 | |
464 | #endif // MONITOR_DEFAULTTONULL | |
465 | ||
466 | #ifndef MONITORINFOF_PRIMARY | |
467 | #define MONITORINFOF_PRIMARY 1 | |
468 | #endif // MONITORINFOF_PRIMARY | |
469 | ||
470 | #ifndef DDENUM_ATTACHEDSECONDARYDEVICES | |
471 | #define DDENUM_ATTACHEDSECONDARYDEVICES 1 | |
472 | #endif | |
473 | ||
474 | #endif // MONITOR_DEFAULTTONULL | |
475 | ||
05e3a383 VZ |
476 | // ---------------------------------------------------------------------------- |
477 | // Tree control | |
478 | // ---------------------------------------------------------------------------- | |
479 | ||
480 | #ifndef TVIS_FOCUSED | |
481 | #define TVIS_FOCUSED 0x0001 | |
482 | #endif | |
483 | ||
05e3a383 VZ |
484 | #ifndef TVS_CHECKBOXES |
485 | #define TVS_CHECKBOXES 0x0100 | |
486 | #endif | |
487 | ||
03de0ad4 WS |
488 | #ifndef TVITEM |
489 | #define TVITEM TV_ITEM | |
490 | #endif | |
491 | ||
446ea107 | 492 | #endif |
90a752c2 | 493 | // DMC++ |
446ea107 | 494 | |
90a752c2 | 495 | /* |
c6c2445d | 496 | * The following are specifically required for OpenWatcom C++ (none at present) |
90a752c2 | 497 | */ |
446ea107 | 498 | |
90a752c2 | 499 | #if defined(__WATCOMC__) |
4a6619bb | 500 | #endif |
ae54422d | 501 | |
90a752c2 | 502 | /* |
c6c2445d | 503 | * The following are specifically required for MinGW (none at present) |
90a752c2 | 504 | */ |
23fbd31a | 505 | |
90a752c2 | 506 | #if defined (__MINGW32__) |
aad7e71c JS |
507 | |
508 | #if !wxCHECK_W32API_VERSION(3,1) | |
509 | ||
510 | #include <windows.h> | |
511 | #include "wx/msw/winundef.h" | |
512 | ||
513 | typedef struct | |
514 | { | |
515 | RECT rgrc[3]; | |
516 | WINDOWPOS *lppos; | |
517 | } NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS; | |
518 | ||
519 | #endif | |
520 | ||
1d7d04d7 JS |
521 | #endif |
522 | ||
a1a17906 SL |
523 | //Various defines that will be needed by mingw and possibly VC++6 |
524 | //Used by the webview library | |
1d7d04d7 | 525 | |
a1a17906 | 526 | #ifndef DISPID_COMMANDSTATECHANGE |
1d7d04d7 | 527 | #define DISPID_COMMANDSTATECHANGE 105 |
a1a17906 SL |
528 | #endif |
529 | ||
530 | #ifndef DISPID_NAVIGATECOMPLETE2 | |
1d7d04d7 | 531 | #define DISPID_NAVIGATECOMPLETE2 252 |
a1a17906 SL |
532 | #endif |
533 | ||
534 | #ifndef DISPID_NAVIGATEERROR | |
1d7d04d7 | 535 | #define DISPID_NAVIGATEERROR 271 |
a1a17906 SL |
536 | #endif |
537 | ||
538 | #ifndef DISPID_NEWWINDOW3 | |
1d7d04d7 | 539 | #define DISPID_NEWWINDOW3 273 |
a1a17906 SL |
540 | #endif |
541 | ||
542 | #ifndef INET_E_ERROR_FIRST | |
1d7d04d7 | 543 | #define INET_E_ERROR_FIRST 0x800C0002L |
a1a17906 SL |
544 | #endif |
545 | ||
546 | #ifndef INET_E_INVALID_URL | |
1d7d04d7 | 547 | #define INET_E_INVALID_URL 0x800C0002L |
a1a17906 SL |
548 | #endif |
549 | ||
550 | #ifndef INET_E_NO_SESSION | |
1d7d04d7 | 551 | #define INET_E_NO_SESSION 0x800C0003L |
a1a17906 SL |
552 | #endif |
553 | ||
554 | #ifndef INET_E_CANNOT_CONNECT | |
1d7d04d7 | 555 | #define INET_E_CANNOT_CONNECT 0x800C0004L |
a1a17906 SL |
556 | #endif |
557 | ||
558 | #ifndef INET_E_RESOURCE_NOT_FOUND | |
1d7d04d7 | 559 | #define INET_E_RESOURCE_NOT_FOUND 0x800C0005L |
a1a17906 SL |
560 | #endif |
561 | ||
562 | #ifndef INET_E_OBJECT_NOT_FOUND | |
1d7d04d7 | 563 | #define INET_E_OBJECT_NOT_FOUND 0x800C0006L |
a1a17906 SL |
564 | #endif |
565 | ||
566 | #ifndef INET_E_DATA_NOT_AVAILABLE | |
1d7d04d7 | 567 | #define INET_E_DATA_NOT_AVAILABLE 0x800C0007L |
a1a17906 SL |
568 | #endif |
569 | ||
570 | #ifndef INET_E_DOWNLOAD_FAILURE | |
1d7d04d7 | 571 | #define INET_E_DOWNLOAD_FAILURE 0x800C0008L |
a1a17906 SL |
572 | #endif |
573 | ||
574 | #ifndef INET_E_AUTHENTICATION_REQUIRED | |
1d7d04d7 | 575 | #define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L |
a1a17906 SL |
576 | #endif |
577 | ||
578 | #ifndef INET_E_NO_VALID_MEDIA | |
1d7d04d7 | 579 | #define INET_E_NO_VALID_MEDIA 0x800C000AL |
a1a17906 SL |
580 | #endif |
581 | ||
582 | #ifndef INET_E_CONNECTION_TIMEOUT | |
1d7d04d7 | 583 | #define INET_E_CONNECTION_TIMEOUT 0x800C000BL |
a1a17906 SL |
584 | #endif |
585 | ||
586 | #ifndef INET_E_INVALID_REQUEST | |
1d7d04d7 | 587 | #define INET_E_INVALID_REQUEST 0x800C000CL |
a1a17906 SL |
588 | #endif |
589 | ||
590 | #ifndef INET_E_UNKNOWN_PROTOCOL | |
1d7d04d7 | 591 | #define INET_E_UNKNOWN_PROTOCOL 0x800C000DL |
a1a17906 SL |
592 | #endif |
593 | ||
594 | #ifndef INET_E_SECURITY_PROBLEM | |
1d7d04d7 | 595 | #define INET_E_SECURITY_PROBLEM 0x800C000EL |
a1a17906 SL |
596 | #endif |
597 | ||
598 | #ifndef INET_E_CANNOT_LOAD_DATA | |
1d7d04d7 | 599 | #define INET_E_CANNOT_LOAD_DATA 0x800C000FL |
a1a17906 SL |
600 | #endif |
601 | ||
602 | #ifndef INET_E_CANNOT_INSTANTIATE_OBJECT | |
1d7d04d7 | 603 | #define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L |
a1a17906 SL |
604 | #endif |
605 | ||
606 | #ifndef INET_E_QUERYOPTION_UNKNOWN | |
1d7d04d7 | 607 | #define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L |
a1a17906 SL |
608 | #endif |
609 | ||
610 | #ifndef INET_E_REDIRECT_FAILED | |
1d7d04d7 | 611 | #define INET_E_REDIRECT_FAILED 0x800C0014L |
a1a17906 SL |
612 | #endif |
613 | ||
614 | #ifndef INET_E_REDIRECT_TO_DIR | |
1d7d04d7 | 615 | #define INET_E_REDIRECT_TO_DIR 0x800C0015L |
a1a17906 SL |
616 | #endif |
617 | ||
618 | #ifndef INET_E_CANNOT_LOCK_REQUEST | |
1d7d04d7 | 619 | #define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L |
a1a17906 SL |
620 | #endif |
621 | ||
622 | #ifndef INET_E_USE_EXTEND_BINDING | |
1d7d04d7 | 623 | #define INET_E_USE_EXTEND_BINDING 0x800C0017L |
a1a17906 SL |
624 | #endif |
625 | ||
626 | #ifndef INET_E_TERMINATED_BIND | |
1d7d04d7 | 627 | #define INET_E_TERMINATED_BIND 0x800C0018L |
a1a17906 SL |
628 | #endif |
629 | ||
630 | #ifndef INET_E_INVALID_CERTIFICATE | |
1d7d04d7 | 631 | #define INET_E_INVALID_CERTIFICATE 0x800C0019L |
a1a17906 SL |
632 | #endif |
633 | ||
634 | #ifndef INET_E_CODE_DOWNLOAD_DECLINED | |
1d7d04d7 | 635 | #define INET_E_CODE_DOWNLOAD_DECLINED 0x800C0100L |
a1a17906 | 636 | #endif |
1d7d04d7 | 637 | |
a1a17906 SL |
638 | #ifndef INET_E_RESULT_DISPATCHED |
639 | #define INET_E_RESULT_DISPATCHED 0x800C0200L | |
1d7d04d7 JS |
640 | #endif |
641 | ||
a1a17906 SL |
642 | #ifndef INET_E_CANNOT_REPLACE_SFP_FILE |
643 | #define INET_E_CANNOT_REPLACE_SFP_FILE 0x800C0300L | |
1d7d04d7 JS |
644 | #endif |
645 | ||
646 | #ifndef INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY | |
647 | #define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY 0x800C0500L | |
648 | #endif | |
649 | ||
650 | #ifndef INET_E_CODE_INSTALL_SUPPRESSED | |
651 | #define INET_E_CODE_INSTALL_SUPPRESSED 0x800C0400L | |
652 | #endif | |
653 | ||
c4dae34d VS |
654 | #ifndef MUI_LANGUAGE_NAME |
655 | #define MUI_LANGUAGE_NAME 0x8 | |
656 | #endif | |
657 | ||
3e6807d7 VZ |
658 | //We need to check if we are using MinGW or mingw-w64 as their |
659 | //definitions are different | |
ad410224 SL |
660 | |
661 | #ifdef __MINGW32__ | |
662 | #include <_mingw.h> | |
663 | #endif | |
664 | ||
3e6807d7 VZ |
665 | #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) |
666 | typedef enum CommandStateChangeConstants { | |
667 | CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF, | |
668 | CSC_NAVIGATEFORWARD = 0x1, | |
669 | CSC_NAVIGATEBACK = 0x2 | |
670 | } CommandStateChangeConstants; | |
41b8fe99 WS |
671 | #endif |
672 | ||
90a752c2 JS |
673 | /* |
674 | * In addition to the declarations for VC++, the following are required for WinCE | |
675 | */ | |
1a838ff5 | 676 | |
fe5c9b3e VZ |
677 | #ifdef __WXWINCE__ |
678 | #include "wx/msw/wince/missing.h" | |
d61c1a6f JS |
679 | #endif |
680 | ||
24aab8e8 MW |
681 | /* |
682 | * The following are specifically required for Wine | |
683 | */ | |
684 | ||
685 | #ifdef __WINE__ | |
686 | #ifndef ENUM_CURRENT_SETTINGS | |
687 | #define ENUM_CURRENT_SETTINGS ((DWORD)-1) | |
688 | #endif | |
689 | #ifndef BROADCAST_QUERY_DENY | |
690 | #define BROADCAST_QUERY_DENY 1112363332 | |
691 | #endif | |
692 | #endif // defined __WINE__ | |
693 | ||
6235846c VZ |
694 | #ifndef INVALID_FILE_ATTRIBUTES |
695 | #define INVALID_FILE_ATTRIBUTES ((DWORD)-1) | |
696 | #endif | |
697 | ||
7391216e VS |
698 | #endif |
699 | // _WX_MISSING_H_ |