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