]>
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 cursor.cpp
20 #define IDC_HAND MAKEINTRESOURCE(32649)
23 // Needed by strconv.cpp
24 #ifndef WC_NO_BEST_FIT_CHARS
25 #define WC_NO_BEST_FIT_CHARS 0x400
28 #ifndef WM_CONTEXTMENU
29 #define WM_CONTEXTMENU 0x007B
32 // Needed by toplevel.cpp
33 #ifndef WM_UPDATEUISTATE
34 #define WM_UPDATEUISTATE 0x0128
37 #ifndef WM_PRINTCLIENT
38 #define WM_PRINTCLIENT 0x318
41 // Needed by toplevel.cpp
42 #ifndef UIS_INITIALIZE
43 #define UIS_INITIALIZE 3
46 #ifndef UISF_HIDEFOCUS
47 #define UISF_HIDEFOCUS 1
50 #ifndef UISF_HIDEACCEL
51 #define UISF_HIDEACCEL 2
55 #define OFN_EXPLORER 0x00080000
58 #ifndef OFN_ENABLESIZING
59 #define OFN_ENABLESIZING 0x00800000
62 // Needed by window.cpp
65 #define WM_MOUSEWHEEL 0x020A
68 #define WHEEL_DELTA 120
70 #ifndef SPI_GETWHEELSCROLLLINES
71 #define SPI_GETWHEELSCROLLLINES 104
73 #endif // wxUSE_MOUSEWHEEL
75 // Needed by window.cpp
87 #define VK_OEM_PLUS 0xBB
88 #define VK_OEM_COMMA 0xBC
89 #define VK_OEM_MINUS 0xBD
90 #define VK_OEM_PERIOD 0xBE
93 // ----------------------------------------------------------------------------
94 // ListView common control
95 // Needed by listctrl.cpp
96 // ----------------------------------------------------------------------------
98 #ifndef LVS_EX_FULLROWSELECT
99 #define LVS_EX_FULLROWSELECT 0x00000020
102 #ifndef LVS_EX_LABELTIP
103 #define LVS_EX_LABELTIP 0x00004000
107 * In addition to the above, the following are required for several compilers.
110 #if !defined(CCS_VERT)
111 #define CCS_VERT 0x00000080L
114 #if !defined(TB_SETDISABLEDIMAGELIST)
115 #define TB_SETDISABLEDIMAGELIST (WM_USER + 54)
116 #endif // !defined(TB_SETDISABLEDIMAGELIST)
118 #ifndef CFM_BACKCOLOR
119 #define CFM_BACKCOLOR 0x04000000
123 * The following are required for BC++ 5.5 (none at present.)
127 * The following are specifically required for Digital Mars C++
132 #ifndef CCM_SETUNICODEFORMAT
133 #define CCM_SETUNICODEFORMAT 8197
137 #ifndef _TrackMouseEvent
138 #define _TrackMouseEvent TrackMouseEvent
142 #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
143 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
147 #define LVCF_IMAGE 0x0010
150 #ifndef Header_GetItemRect
151 #define Header_GetItemRect(w,i,r) \
152 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
155 #ifndef HDM_GETITEMRECT
156 #define HDM_GETITEMRECT (HDM_FIRST+7)
159 #ifndef HDN_GETDISPINFOW
160 #define HDN_GETDISPINFOW (HDN_FIRST-29)
163 #ifndef ListView_GetHeader
164 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
167 #ifndef LVM_GETHEADER
168 #define LVM_GETHEADER (LVM_FIRST+31)
171 #ifndef LVSICF_NOSCROLL
172 #define LVSICF_NOINVALIDATEALL 0x0001
173 #define LVSICF_NOSCROLL 0x0002
176 // ----------------------------------------------------------------------------
178 // ----------------------------------------------------------------------------
181 #define TVIS_FOCUSED 0x0001
185 #define TV_FIRST 0x1100
188 #ifndef TVS_CHECKBOXES
189 #define TVS_CHECKBOXES 0x0100
192 #ifndef TVS_FULLROWSELECT
193 #define TVS_FULLROWSELECT 0x1000
196 #ifndef TVM_SETBKCOLOR
197 #define TVM_SETBKCOLOR (TV_FIRST + 29)
198 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
205 * The following are specifically required for OpenWatcom C++ (none at present)
208 #if defined(__WATCOMC__)
212 * The following are specifically required for MinGW (none at present)
215 #if defined (__MINGW32__)
219 * In addition to the declarations for VC++, the following are required for WinCE
223 #include "wx/msw/wince/missing.h"