]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/missing.h
Fix for eVC++ 3
[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
90a752c2
JS
32// Needed by toplevel.cpp
33#ifndef WM_UPDATEUISTATE
34 #define WM_UPDATEUISTATE 0x0128
3bce6687
JS
35#endif
36
90a752c2
JS
37#ifndef WM_PRINTCLIENT
38 #define WM_PRINTCLIENT 0x318
3bce6687
JS
39#endif
40
90a752c2
JS
41// Needed by toplevel.cpp
42#ifndef UIS_INITIALIZE
43 #define UIS_INITIALIZE 3
3bce6687
JS
44#endif
45
90a752c2
JS
46#ifndef UISF_HIDEFOCUS
47 #define UISF_HIDEFOCUS 1
7391216e
VS
48#endif
49
90a752c2
JS
50#ifndef UISF_HIDEACCEL
51 #define UISF_HIDEACCEL 2
49bbd59b 52#endif
2b5f62a0 53
90a752c2
JS
54#ifndef OFN_EXPLORER
55 #define OFN_EXPLORER 0x00080000
521e585f
VZ
56#endif
57
90a752c2
JS
58#ifndef OFN_ENABLESIZING
59 #define OFN_ENABLESIZING 0x00800000
8318f30f
CE
60#endif
61
90a752c2
JS
62// Needed by window.cpp
63#if wxUSE_MOUSEWHEEL
64 #ifndef WM_MOUSEWHEEL
65 #define WM_MOUSEWHEEL 0x020A
66 #endif
67 #ifndef WHEEL_DELTA
68 #define WHEEL_DELTA 120
69 #endif
70 #ifndef SPI_GETWHEELSCROLLLINES
71 #define SPI_GETWHEELSCROLLLINES 104
72 #endif
73#endif // wxUSE_MOUSEWHEEL
8318f30f 74
90a752c2
JS
75// Needed by window.cpp
76#ifndef VK_OEM_1
77 #define VK_OEM_1 0xBA
78 #define VK_OEM_2 0xBF
79 #define VK_OEM_3 0xC0
80 #define VK_OEM_4 0xDB
81 #define VK_OEM_5 0xDC
82 #define VK_OEM_6 0xDD
83 #define VK_OEM_7 0xDE
8318f30f
CE
84#endif
85
90a752c2
JS
86#ifndef VK_OEM_COMMA
87 #define VK_OEM_PLUS 0xBB
88 #define VK_OEM_COMMA 0xBC
89 #define VK_OEM_MINUS 0xBD
90 #define VK_OEM_PERIOD 0xBE
dd54f5d3 91#endif
7391216e 92
e2478fde 93// ----------------------------------------------------------------------------
90a752c2
JS
94// ListView common control
95// Needed by listctrl.cpp
e2478fde
VZ
96// ----------------------------------------------------------------------------
97
aec26358
WS
98#ifndef LVS_EX_FULLROWSELECT
99 #define LVS_EX_FULLROWSELECT 0x00000020
100#endif
101
90a752c2
JS
102#ifndef LVS_EX_LABELTIP
103 #define LVS_EX_LABELTIP 0x00004000
e2478fde
VZ
104#endif
105
90a752c2 106 /*
c6c2445d
JS
107 * In addition to the above, the following are required for several compilers.
108 */
109
110#if !defined(CCS_VERT)
111#define CCS_VERT 0x00000080L
112#endif
113
114#if !defined(TB_SETDISABLEDIMAGELIST)
115 #define TB_SETDISABLEDIMAGELIST (WM_USER + 54)
116#endif // !defined(TB_SETDISABLEDIMAGELIST)
117
118#ifndef CFM_BACKCOLOR
119 #define CFM_BACKCOLOR 0x04000000
120#endif
121
122 /*
123 * The following are required for BC++ 5.5 (none at present.)
90a752c2 124 */
e2478fde 125
90a752c2 126 /*
c6c2445d 127 * The following are specifically required for Digital Mars C++
90a752c2 128 */
e2478fde 129
90a752c2 130#ifdef __DMC__
e2478fde 131
90a752c2
JS
132#ifndef CCM_SETUNICODEFORMAT
133 #define CCM_SETUNICODEFORMAT 8197
e2478fde
VZ
134#endif
135
90a752c2
JS
136#ifdef __DMC__
137 #ifndef _TrackMouseEvent
138 #define _TrackMouseEvent TrackMouseEvent
139 #endif
e2478fde
VZ
140#endif
141
90a752c2
JS
142#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
143 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
e2478fde
VZ
144#endif
145
90a752c2
JS
146#ifndef LVCF_IMAGE
147 #define LVCF_IMAGE 0x0010
e2478fde
VZ
148#endif
149
90a752c2
JS
150#ifndef Header_GetItemRect
151 #define Header_GetItemRect(w,i,r) \
152 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
3ec4107d
MB
153#endif
154
90a752c2
JS
155#ifndef HDM_GETITEMRECT
156 #define HDM_GETITEMRECT (HDM_FIRST+7)
3ec4107d
MB
157#endif
158
90a752c2
JS
159#ifndef HDN_GETDISPINFOW
160 #define HDN_GETDISPINFOW (HDN_FIRST-29)
3ec4107d
MB
161#endif
162
90a752c2
JS
163#ifndef ListView_GetHeader
164 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
3ec4107d
MB
165#endif
166
90a752c2
JS
167#ifndef LVM_GETHEADER
168 #define LVM_GETHEADER (LVM_FIRST+31)
3ec4107d
MB
169#endif
170
90a752c2
JS
171#ifndef LVSICF_NOSCROLL
172 #define LVSICF_NOINVALIDATEALL 0x0001
173 #define LVSICF_NOSCROLL 0x0002
3ec4107d
MB
174#endif
175
05e3a383
VZ
176// ----------------------------------------------------------------------------
177// Tree control
178// ----------------------------------------------------------------------------
179
180#ifndef TVIS_FOCUSED
181 #define TVIS_FOCUSED 0x0001
182#endif
183
184#ifndef TV_FIRST
185 #define TV_FIRST 0x1100
186#endif
187
188#ifndef TVS_CHECKBOXES
189 #define TVS_CHECKBOXES 0x0100
190#endif
191
192#ifndef TVS_FULLROWSELECT
193 #define TVS_FULLROWSELECT 0x1000
194#endif
195
196#ifndef TVM_SETBKCOLOR
197 #define TVM_SETBKCOLOR (TV_FIRST + 29)
198 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
199#endif
200
446ea107 201#endif
90a752c2 202 // DMC++
446ea107 203
90a752c2 204 /*
c6c2445d 205 * The following are specifically required for OpenWatcom C++ (none at present)
90a752c2 206 */
446ea107 207
90a752c2 208#if defined(__WATCOMC__)
4a6619bb 209#endif
ae54422d 210
90a752c2 211 /*
c6c2445d 212 * The following are specifically required for MinGW (none at present)
90a752c2 213 */
23fbd31a 214
90a752c2 215#if defined (__MINGW32__)
41b8fe99
WS
216#endif
217
90a752c2
JS
218 /*
219 * In addition to the declarations for VC++, the following are required for WinCE
220 */
1a838ff5 221
fe5c9b3e
VZ
222#ifdef __WXWINCE__
223 #include "wx/msw/wince/missing.h"
d61c1a6f
JS
224#endif
225
7391216e
VS
226#endif
227 // _WX_MISSING_H_
90a752c2 228