]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/missing.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declarations for parts of the Win32 SDK that are missing in
4 // the version that comes with some compilers
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_MISSING_H_
11 #define _WX_MISSING_H_
13 // ----------------------------------------------------------------------------
14 // ListView common control
15 // ----------------------------------------------------------------------------
19 (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)
22 #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
23 #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
26 #ifndef LVS_EX_FULLROWSELECT
27 #define LVS_EX_FULLROWSELECT 0x00000020
31 #define LVS_OWNERDATA 0x1000
35 #define LVM_FIRST 0x1000
39 #define HDM_FIRST 0x1200
42 #ifndef LVCFMT_JUSTIFYMASK
43 #define LVCFMT_JUSTIFYMASK 0x0003
46 // mingw32/cygwin don't have declarations for comctl32.dll 4.70+ stuff
48 typedef struct tagNMLVCACHEHINT
55 #define NM_CACHEHINT NMLVCACHEHINT
58 #ifndef LVN_ODCACHEHINT
59 #define LVN_ODCACHEHINT (-113)
62 #ifndef ListView_GetHeader
63 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
67 #define LVM_GETHEADER (LVM_FIRST+31)
70 #ifndef Header_GetItemRect
71 #define Header_GetItemRect(w,i,r) \
72 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
75 #ifndef HDM_GETITEMRECT
76 #define HDM_GETITEMRECT (HDM_FIRST+7)
80 #define LVCF_IMAGE 0x0010
83 #ifndef LVCFMT_BITMAP_ON_RIGHT
84 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
87 #if defined(__GNUWIN32__) && !defined(LV_ITEM) \
88 && !wxCHECK_W32API_VERSION( 0, 5 )
89 typedef struct _LVITEMW
{
99 #if (_WIN32_IE >= 0x0300)
104 typedef struct tagLVITEMA
115 #if (_WIN32_IE >= 0x0300)
120 #define LV_ITEM LV_ITEMA;
123 #ifndef ListView_GetColumnWidth
124 #define ListView_GetColumnWidth(hwnd, iCol) \
125 (int)SNDMSG((hwnd), LVM_GETCOLUMNWIDTH, (WPARAM)(int)(iCol), 0)
128 #ifndef ListView_SetColumnWidth
129 #define ListView_SetColumnWidth(hwnd, iCol, cx) \
130 (BOOL)SNDMSG((hwnd), LVM_SETCOLUMNWIDTH, (WPARAM)(int)(iCol), MAKELPARAM((cx), 0))
133 #ifndef ListView_GetTextColor
134 #define ListView_GetTextColor(hwnd) \
135 (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0L)
138 #ifndef ListView_FindItem
139 #define ListView_FindItem(hwnd, iStart, plvfi) \
140 (int)SNDMSG((hwnd), LVM_FINDITEM, (WPARAM)(int)(iStart), (LPARAM)(const LV_FINDINFO FAR*)(plvfi))
143 #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
145 typedef struct tagNMLVDISPINFOA
{
148 } NMLVDISPINFOA
, FAR
*LPNMLVDISPINFOA
;
149 #define _LV_DISPINFOA tagNMLVDISPINFOA
150 #define LV_DISPINFOA NMLVDISPINFOA
153 typedef struct tagNMLVDISPINFOW
{
156 } NMLVDISPINFOW
, FAR
*LPNMLVDISPINFOW
;
157 #define _LV_DISPINFOW tagNMLVDISPINFOW
158 #define LV_DISPINFOW NMLVDISPINFOW
162 #if ((defined(__WATCOMC__) && __WATCOMC__ >= 1200) || defined(__GNUWIN32__)) && !defined(HDN_GETDISPINFOW)
163 #define HDN_GETDISPINFOW (HDN_FIRST-29)
164 #if !wxCHECK_W32API_VERSION(2, 2)
173 } NMHDDISPINFOW
, *LPNMHDDISPINFOW
;
178 // ----------------------------------------------------------------------------
180 // ----------------------------------------------------------------------------
182 // instead of including htmlhelp.h, duplicate the things from it we need here:
200 HH_DISPLAY_TEXT_POPUP
,
202 HH_TP_HELP_CONTEXTMENU
,
210 HH_SET_INCLUSIVE_FILTER
,
211 HH_SET_EXCLUSIVE_FILTER
221 COLORREF clrForeground
;
222 COLORREF clrBackground
;
240 // ----------------------------------------------------------------------------
242 // ----------------------------------------------------------------------------
244 #ifndef QS_ALLPOSTMESSAGE
245 #define QS_ALLPOSTMESSAGE 0x0100