]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/missing.h
Artwork replacement (c) Julian Smart
[wxWidgets.git] / include / wx / msw / missing.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/missing.h
3 // Purpose: Declarations for parts of the Win32 SDK that are missing in
4 // the versions that come with some compilers
5 // Created: 2002/04/23
6 // RCS-ID: $Id$
7 // Copyright: (c) 2002 Mattia Barbon
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MISSING_H_
12 #define _WX_MISSING_H_
13
14 /*
15 * The following are required for VC++ 6.
16 */
17
18 // Needed by strconv.cpp
19 #ifndef WC_NO_BEST_FIT_CHARS
20 #define WC_NO_BEST_FIT_CHARS 0x400
21 #endif
22
23 #ifndef WM_CONTEXTMENU
24 #define WM_CONTEXTMENU 0x007B
25 #endif
26
27 // Needed by toplevel.cpp
28 #ifndef WM_UPDATEUISTATE
29 #define WM_UPDATEUISTATE 0x0128
30 #endif
31
32 #ifndef WM_PRINTCLIENT
33 #define WM_PRINTCLIENT 0x318
34 #endif
35
36 // Needed by toplevel.cpp
37 #ifndef UIS_INITIALIZE
38 #define UIS_INITIALIZE 3
39 #endif
40
41 #ifndef UISF_HIDEFOCUS
42 #define UISF_HIDEFOCUS 1
43 #endif
44
45 #ifndef UISF_HIDEACCEL
46 #define UISF_HIDEACCEL 2
47 #endif
48
49 #ifndef OFN_EXPLORER
50 #define OFN_EXPLORER 0x00080000
51 #endif
52
53 #ifndef OFN_ENABLESIZING
54 #define OFN_ENABLESIZING 0x00800000
55 #endif
56
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
69
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
79 #endif
80
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
86 #endif
87
88 // ----------------------------------------------------------------------------
89 // ListView common control
90 // Needed by listctrl.cpp
91 // ----------------------------------------------------------------------------
92
93 #ifndef LVS_EX_FULLROWSELECT
94 #define LVS_EX_FULLROWSELECT 0x00000020
95 #endif
96
97 #ifndef LVS_EX_LABELTIP
98 #define LVS_EX_LABELTIP 0x00004000
99 #endif
100
101 /*
102 * In addition to the above, the following are required for several compilers.
103 */
104
105 #if !defined(CCS_VERT)
106 #define CCS_VERT 0x00000080L
107 #endif
108
109 #if !defined(TB_SETDISABLEDIMAGELIST)
110 #define TB_SETDISABLEDIMAGELIST (WM_USER + 54)
111 #endif // !defined(TB_SETDISABLEDIMAGELIST)
112
113 #ifndef CFM_BACKCOLOR
114 #define CFM_BACKCOLOR 0x04000000
115 #endif
116
117 /*
118 * The following are required for BC++ 5.5 (none at present.)
119 */
120
121 /*
122 * The following are specifically required for Digital Mars C++
123 */
124
125 #ifdef __DMC__
126
127 #ifndef CCM_SETUNICODEFORMAT
128 #define CCM_SETUNICODEFORMAT 8197
129 #endif
130
131 #ifdef __DMC__
132 #ifndef _TrackMouseEvent
133 #define _TrackMouseEvent TrackMouseEvent
134 #endif
135 #endif
136
137 #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
138 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
139 #endif
140
141 #ifndef LVCF_IMAGE
142 #define LVCF_IMAGE 0x0010
143 #endif
144
145 #ifndef Header_GetItemRect
146 #define Header_GetItemRect(w,i,r) \
147 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
148 #endif
149
150 #ifndef HDM_GETITEMRECT
151 #define HDM_GETITEMRECT (HDM_FIRST+7)
152 #endif
153
154 #ifndef HDN_GETDISPINFOW
155 #define HDN_GETDISPINFOW (HDN_FIRST-29)
156 #endif
157
158 #ifndef ListView_GetHeader
159 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
160 #endif
161
162 #ifndef LVM_GETHEADER
163 #define LVM_GETHEADER (LVM_FIRST+31)
164 #endif
165
166 #ifndef LVSICF_NOSCROLL
167 #define LVSICF_NOINVALIDATEALL 0x0001
168 #define LVSICF_NOSCROLL 0x0002
169 #endif
170
171 // ----------------------------------------------------------------------------
172 // Tree control
173 // ----------------------------------------------------------------------------
174
175 #ifndef TVIS_FOCUSED
176 #define TVIS_FOCUSED 0x0001
177 #endif
178
179 #ifndef TV_FIRST
180 #define TV_FIRST 0x1100
181 #endif
182
183 #ifndef TVS_CHECKBOXES
184 #define TVS_CHECKBOXES 0x0100
185 #endif
186
187 #ifndef TVS_FULLROWSELECT
188 #define TVS_FULLROWSELECT 0x1000
189 #endif
190
191 #ifndef TVM_SETBKCOLOR
192 #define TVM_SETBKCOLOR (TV_FIRST + 29)
193 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
194 #endif
195
196 #endif
197 // DMC++
198
199 /*
200 * The following are specifically required for OpenWatcom C++ (none at present)
201 */
202
203 #if defined(__WATCOMC__)
204 #endif
205
206 /*
207 * The following are specifically required for MinGW (none at present)
208 */
209
210 #if defined (__MINGW32__)
211 #endif
212
213 /*
214 * In addition to the declarations for VC++, the following are required for WinCE
215 */
216
217 #ifdef __WXWINCE__
218 #include "wx/msw/wince/missing.h"
219 #endif
220
221 #endif
222 // _WX_MISSING_H_
223