]>
git.saurik.com Git - wxWidgets.git/blob - 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
7 // Copyright: (c) 2002 Mattia Barbon
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MISSING_H_
12 #define _WX_MISSING_H_
15 * The following are required for VC++ 6.
18 // Needed by strconv.cpp
19 #ifndef WC_NO_BEST_FIT_CHARS
20 #define WC_NO_BEST_FIT_CHARS 0x400
23 #ifndef WM_CONTEXTMENU
24 #define WM_CONTEXTMENU 0x007B
27 // Needed by toplevel.cpp
28 #ifndef WM_UPDATEUISTATE
29 #define WM_UPDATEUISTATE 0x0128
32 #ifndef WM_PRINTCLIENT
33 #define WM_PRINTCLIENT 0x318
36 // Needed by toplevel.cpp
37 #ifndef UIS_INITIALIZE
38 #define UIS_INITIALIZE 3
41 #ifndef UISF_HIDEFOCUS
42 #define UISF_HIDEFOCUS 1
45 #ifndef UISF_HIDEACCEL
46 #define UISF_HIDEACCEL 2
50 #define OFN_EXPLORER 0x00080000
53 #ifndef OFN_ENABLESIZING
54 #define OFN_ENABLESIZING 0x00800000
57 // Needed by window.cpp
60 #define WM_MOUSEWHEEL 0x020A
63 #define WHEEL_DELTA 120
65 #ifndef SPI_GETWHEELSCROLLLINES
66 #define SPI_GETWHEELSCROLLLINES 104
68 #endif // wxUSE_MOUSEWHEEL
70 // Needed by window.cpp
82 #define VK_OEM_PLUS 0xBB
83 #define VK_OEM_COMMA 0xBC
84 #define VK_OEM_MINUS 0xBD
85 #define VK_OEM_PERIOD 0xBE
88 // ----------------------------------------------------------------------------
89 // ListView common control
90 // Needed by listctrl.cpp
91 // ----------------------------------------------------------------------------
93 #ifndef LVS_EX_LABELTIP
94 #define LVS_EX_LABELTIP 0x00004000
98 * In addition to the above, the following are required for several compilers.
101 #if !defined(CCS_VERT)
102 #define CCS_VERT 0x00000080L
105 #if !defined(TB_SETDISABLEDIMAGELIST)
106 #define TB_SETDISABLEDIMAGELIST (WM_USER + 54)
107 #endif // !defined(TB_SETDISABLEDIMAGELIST)
109 #ifndef CFM_BACKCOLOR
110 #define CFM_BACKCOLOR 0x04000000
114 * The following are required for BC++ 5.5 (none at present.)
118 * The following are specifically required for Digital Mars C++
123 #ifndef CCM_SETUNICODEFORMAT
124 #define CCM_SETUNICODEFORMAT 8197
128 #ifndef _TrackMouseEvent
129 #define _TrackMouseEvent TrackMouseEvent
133 #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
134 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
138 #define LVCF_IMAGE 0x0010
141 #ifndef Header_GetItemRect
142 #define Header_GetItemRect(w,i,r) \
143 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
146 #ifndef HDM_GETITEMRECT
147 #define HDM_GETITEMRECT (HDM_FIRST+7)
150 #ifndef HDN_GETDISPINFOW
151 #define HDN_GETDISPINFOW (HDN_FIRST-29)
154 #ifndef ListView_GetHeader
155 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
158 #ifndef LVM_GETHEADER
159 #define LVM_GETHEADER (LVM_FIRST+31)
162 #ifndef LVSICF_NOSCROLL
163 #define LVSICF_NOINVALIDATEALL 0x0001
164 #define LVSICF_NOSCROLL 0x0002
167 // ----------------------------------------------------------------------------
169 // ----------------------------------------------------------------------------
172 #define TVIS_FOCUSED 0x0001
176 #define TV_FIRST 0x1100
179 #ifndef TVS_CHECKBOXES
180 #define TVS_CHECKBOXES 0x0100
183 #ifndef TVS_FULLROWSELECT
184 #define TVS_FULLROWSELECT 0x1000
187 #ifndef TVM_SETBKCOLOR
188 #define TVM_SETBKCOLOR (TV_FIRST + 29)
189 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
196 * The following are specifically required for OpenWatcom C++ (none at present)
199 #if defined(__WATCOMC__)
203 * The following are specifically required for MinGW (none at present)
206 #if defined (__MINGW32__)
210 * In addition to the declarations for VC++, the following are required for WinCE
214 #include "wx/msw/wince/missing.h"