]>
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
122 #ifndef HANGUL_CHARSET
123 #define HANGUL_CHARSET 129
126 #ifndef CCM_SETUNICODEFORMAT
127 #define CCM_SETUNICODEFORMAT 8197
130 // ----------------------------------------------------------------------------
132 // ----------------------------------------------------------------------------
135 #define TV_FIRST 0x1100
138 #ifndef TVS_FULLROWSELECT
139 #define TVS_FULLROWSELECT 0x1000
142 #ifndef TVM_SETBKCOLOR
143 #define TVM_SETBKCOLOR (TV_FIRST + 29)
144 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
148 * The following are required for BC++ 5.5 (none at present.)
152 * The following are specifically required for Digital Mars C++
158 #ifndef _TrackMouseEvent
159 #define _TrackMouseEvent TrackMouseEvent
163 #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
164 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
168 #define LVCF_IMAGE 0x0010
171 #ifndef Header_GetItemRect
172 #define Header_GetItemRect(w,i,r) \
173 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
176 #ifndef HDM_GETITEMRECT
177 #define HDM_GETITEMRECT (HDM_FIRST+7)
180 #ifndef HDN_GETDISPINFOW
181 #define HDN_GETDISPINFOW (HDN_FIRST-29)
184 #ifndef ListView_GetHeader
185 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
188 #ifndef LVM_GETHEADER
189 #define LVM_GETHEADER (LVM_FIRST+31)
192 #ifndef LVSICF_NOSCROLL
193 #define LVSICF_NOINVALIDATEALL 0x0001
194 #define LVSICF_NOSCROLL 0x0002
197 // ----------------------------------------------------------------------------
199 // ----------------------------------------------------------------------------
202 #define TVIS_FOCUSED 0x0001
205 #ifndef TVS_CHECKBOXES
206 #define TVS_CHECKBOXES 0x0100
210 #define TVITEM TV_ITEM
217 * The following are specifically required for OpenWatcom C++ (none at present)
220 #if defined(__WATCOMC__)
224 * The following are specifically required for MinGW (none at present)
227 #if defined (__MINGW32__)
231 * In addition to the declarations for VC++, the following are required for WinCE
235 #include "wx/msw/wince/missing.h"