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