]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/missing.h
assert -> wxASSERT
[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
8b5d41cc
MW
122#ifndef HANGUL_CHARSET
123 #define HANGUL_CHARSET 129
124#endif
125
126#ifndef CCM_SETUNICODEFORMAT
127 #define CCM_SETUNICODEFORMAT 8197
128#endif
129
130// ----------------------------------------------------------------------------
131// Tree control
132// ----------------------------------------------------------------------------
133
134#ifndef TV_FIRST
135 #define TV_FIRST 0x1100
136#endif
137
138#ifndef TVS_FULLROWSELECT
139 #define TVS_FULLROWSELECT 0x1000
140#endif
141
142#ifndef TVM_SETBKCOLOR
143 #define TVM_SETBKCOLOR (TV_FIRST + 29)
144 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
145#endif
146
c6c2445d
JS
147 /*
148 * The following are required for BC++ 5.5 (none at present.)
90a752c2 149 */
e2478fde 150
90a752c2 151 /*
c6c2445d 152 * The following are specifically required for Digital Mars C++
90a752c2 153 */
e2478fde 154
90a752c2 155#ifdef __DMC__
e2478fde 156
90a752c2
JS
157#ifdef __DMC__
158 #ifndef _TrackMouseEvent
159 #define _TrackMouseEvent TrackMouseEvent
160 #endif
e2478fde
VZ
161#endif
162
90a752c2
JS
163#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
164 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
e2478fde
VZ
165#endif
166
90a752c2
JS
167#ifndef LVCF_IMAGE
168 #define LVCF_IMAGE 0x0010
e2478fde
VZ
169#endif
170
90a752c2
JS
171#ifndef Header_GetItemRect
172 #define Header_GetItemRect(w,i,r) \
173 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
3ec4107d
MB
174#endif
175
90a752c2
JS
176#ifndef HDM_GETITEMRECT
177 #define HDM_GETITEMRECT (HDM_FIRST+7)
3ec4107d
MB
178#endif
179
90a752c2
JS
180#ifndef HDN_GETDISPINFOW
181 #define HDN_GETDISPINFOW (HDN_FIRST-29)
3ec4107d
MB
182#endif
183
90a752c2
JS
184#ifndef ListView_GetHeader
185 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
3ec4107d
MB
186#endif
187
90a752c2
JS
188#ifndef LVM_GETHEADER
189 #define LVM_GETHEADER (LVM_FIRST+31)
3ec4107d
MB
190#endif
191
90a752c2
JS
192#ifndef LVSICF_NOSCROLL
193 #define LVSICF_NOINVALIDATEALL 0x0001
194 #define LVSICF_NOSCROLL 0x0002
3ec4107d
MB
195#endif
196
05e3a383
VZ
197// ----------------------------------------------------------------------------
198// Tree control
199// ----------------------------------------------------------------------------
200
201#ifndef TVIS_FOCUSED
202 #define TVIS_FOCUSED 0x0001
203#endif
204
05e3a383
VZ
205#ifndef TVS_CHECKBOXES
206 #define TVS_CHECKBOXES 0x0100
207#endif
208
03de0ad4
WS
209#ifndef TVITEM
210 #define TVITEM TV_ITEM
211#endif
212
446ea107 213#endif
90a752c2 214 // DMC++
446ea107 215
90a752c2 216 /*
c6c2445d 217 * The following are specifically required for OpenWatcom C++ (none at present)
90a752c2 218 */
446ea107 219
90a752c2 220#if defined(__WATCOMC__)
4a6619bb 221#endif
ae54422d 222
90a752c2 223 /*
c6c2445d 224 * The following are specifically required for MinGW (none at present)
90a752c2 225 */
23fbd31a 226
90a752c2 227#if defined (__MINGW32__)
41b8fe99
WS
228#endif
229
90a752c2
JS
230 /*
231 * In addition to the declarations for VC++, the following are required for WinCE
232 */
1a838ff5 233
fe5c9b3e
VZ
234#ifdef __WXWINCE__
235 #include "wx/msw/wince/missing.h"
d61c1a6f
JS
236#endif
237
7391216e
VS
238#endif
239 // _WX_MISSING_H_