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