]>
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)
103 typedef LV_ITEM LV_ITEMA
;
106 #ifndef ListView_GetColumnWidth
107 #define ListView_GetColumnWidth(hwnd, iCol) \
108 (int)SNDMSG((hwnd), LVM_GETCOLUMNWIDTH, (WPARAM)(int)(iCol), 0)
111 #ifndef ListView_SetColumnWidth
112 #define ListView_SetColumnWidth(hwnd, iCol, cx) \
113 (BOOL)SNDMSG((hwnd), LVM_SETCOLUMNWIDTH, (WPARAM)(int)(iCol), MAKELPARAM((cx), 0))
116 #ifndef ListView_GetTextColor
117 #define ListView_GetTextColor(hwnd) \
118 (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0L)
121 #ifndef ListView_FindItem
122 #define ListView_FindItem(hwnd, iStart, plvfi) \
123 (int)SNDMSG((hwnd), LVM_FINDITEM, (WPARAM)(int)(iStart), (LPARAM)(const LV_FINDINFO FAR*)(plvfi))
126 #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
128 typedef struct tagNMLVDISPINFOA
{
131 } NMLVDISPINFOA
, FAR
*LPNMLVDISPINFOA
;
132 #define _LV_DISPINFOA tagNMLVDISPINFOA
133 #define LV_DISPINFOA NMLVDISPINFOA
136 typedef struct tagNMLVDISPINFOW
{
139 } NMLVDISPINFOW
, FAR
*LPNMLVDISPINFOW
;
140 #define _LV_DISPINFOW tagNMLVDISPINFOW
141 #define LV_DISPINFOW NMLVDISPINFOW
146 // ----------------------------------------------------------------------------
148 // ----------------------------------------------------------------------------
150 // instead of including htmlhelp.h, duplicate the things from it we need here:
168 HH_DISPLAY_TEXT_POPUP
,
170 HH_TP_HELP_CONTEXTMENU
,
178 HH_SET_INCLUSIVE_FILTER
,
179 HH_SET_EXCLUSIVE_FILTER
189 COLORREF clrForeground
;
190 COLORREF clrBackground
;
208 // ----------------------------------------------------------------------------
210 // ----------------------------------------------------------------------------
212 #ifndef QS_ALLPOSTMESSAGE
213 #define QS_ALLPOSTMESSAGE 0x0100
217 #define LV_ITEMA LVITEMA
218 #define LV_ITEMW LVITEMW
219 #define LV_DISPINFOA NMLVDISPINFOA
220 #define LV_DISPINFOW NMLVDISPINFOW
223 #define LV_FINDINFO LVFINDINFOW
225 #define LV_FINDINFO LVFINDINFOA