]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/missing.h
fix assert when leaving control with wxDP_ALLOWNONE style (patch 1190145)
[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
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
aec26358
WS
93#ifndef LVS_EX_FULLROWSELECT
94 #define LVS_EX_FULLROWSELECT 0x00000020
95#endif
96
90a752c2
JS
97#ifndef LVS_EX_LABELTIP
98 #define LVS_EX_LABELTIP 0x00004000
e2478fde
VZ
99#endif
100
90a752c2 101 /*
c6c2445d
JS
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.)
90a752c2 119 */
e2478fde 120
90a752c2 121 /*
c6c2445d 122 * The following are specifically required for Digital Mars C++
90a752c2 123 */
e2478fde 124
90a752c2 125#ifdef __DMC__
e2478fde 126
90a752c2
JS
127#ifndef CCM_SETUNICODEFORMAT
128 #define CCM_SETUNICODEFORMAT 8197
e2478fde
VZ
129#endif
130
90a752c2
JS
131#ifdef __DMC__
132 #ifndef _TrackMouseEvent
133 #define _TrackMouseEvent TrackMouseEvent
134 #endif
e2478fde
VZ
135#endif
136
90a752c2
JS
137#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
138 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
e2478fde
VZ
139#endif
140
90a752c2
JS
141#ifndef LVCF_IMAGE
142 #define LVCF_IMAGE 0x0010
e2478fde
VZ
143#endif
144
90a752c2
JS
145#ifndef Header_GetItemRect
146 #define Header_GetItemRect(w,i,r) \
147 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
3ec4107d
MB
148#endif
149
90a752c2
JS
150#ifndef HDM_GETITEMRECT
151 #define HDM_GETITEMRECT (HDM_FIRST+7)
3ec4107d
MB
152#endif
153
90a752c2
JS
154#ifndef HDN_GETDISPINFOW
155 #define HDN_GETDISPINFOW (HDN_FIRST-29)
3ec4107d
MB
156#endif
157
90a752c2
JS
158#ifndef ListView_GetHeader
159 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
3ec4107d
MB
160#endif
161
90a752c2
JS
162#ifndef LVM_GETHEADER
163 #define LVM_GETHEADER (LVM_FIRST+31)
3ec4107d
MB
164#endif
165
90a752c2
JS
166#ifndef LVSICF_NOSCROLL
167 #define LVSICF_NOINVALIDATEALL 0x0001
168 #define LVSICF_NOSCROLL 0x0002
3ec4107d
MB
169#endif
170
05e3a383
VZ
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
446ea107 196#endif
90a752c2 197 // DMC++
446ea107 198
90a752c2 199 /*
c6c2445d 200 * The following are specifically required for OpenWatcom C++ (none at present)
90a752c2 201 */
446ea107 202
90a752c2 203#if defined(__WATCOMC__)
4a6619bb 204#endif
ae54422d 205
90a752c2 206 /*
c6c2445d 207 * The following are specifically required for MinGW (none at present)
90a752c2 208 */
23fbd31a 209
90a752c2 210#if defined (__MINGW32__)
41b8fe99
WS
211#endif
212
90a752c2
JS
213 /*
214 * In addition to the declarations for VC++, the following are required for WinCE
215 */
1a838ff5 216
fe5c9b3e
VZ
217#ifdef __WXWINCE__
218 #include "wx/msw/wince/missing.h"
d61c1a6f
JS
219#endif
220
7391216e
VS
221#endif
222 // _WX_MISSING_H_
90a752c2 223