]>
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 // mingw32/cygwin don't have declarations for comctl32.dll 4.70+ stuff
44 typedef struct tagNMLVCACHEHINT
51 #define NM_CACHEHINT NMLVCACHEHINT
54 #ifndef LVN_ODCACHEHINT
55 #define LVN_ODCACHEHINT (-113)
58 #ifndef ListView_GetHeader
59 #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
63 #define LVM_GETHEADER (LVM_FIRST+31)
66 #ifndef Header_GetItemRect
67 #define Header_GetItemRect(w,i,r) \
68 (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
71 #ifndef HDM_GETITEMRECT
72 #define HDM_GETITEMRECT (HDM_FIRST+7)
76 #define LVCF_IMAGE 0x0010
79 #ifndef LVCFMT_BITMAP_ON_RIGHT
80 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
83 #if defined(__GNUWIN32__) && !defined(LV_ITEM) \
84 && !wxCHECK_W32API_VERSION( 0, 5 )
85 typedef struct _LVITEMW
{
95 #if (_WIN32_IE >= 0x0300)
99 typedef LV_ITEM LV_ITEMA
;
102 #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
104 typedef struct tagNMLVDISPINFOA
{
107 } NMLVDISPINFOA
, FAR
*LPNMLVDISPINFOA
;
108 #define _LV_DISPINFOA tagNMLVDISPINFOA
109 #define LV_DISPINFOA NMLVDISPINFOA
112 typedef struct tagNMLVDISPINFOW
{
115 } NMLVDISPINFOW
, FAR
*LPNMLVDISPINFOW
;
116 #define _LV_DISPINFOW tagNMLVDISPINFOW
117 #define LV_DISPINFOW NMLVDISPINFOW
122 // ----------------------------------------------------------------------------
124 // ----------------------------------------------------------------------------
126 // instead of including htmlhelp.h, duplicate the things from it we need here:
144 HH_DISPLAY_TEXT_POPUP
,
146 HH_TP_HELP_CONTEXTMENU
,
154 HH_SET_INCLUSIVE_FILTER
,
155 HH_SET_EXCLUSIVE_FILTER
165 COLORREF clrForeground
;
166 COLORREF clrBackground
;
184 // ----------------------------------------------------------------------------
186 // ----------------------------------------------------------------------------
188 #ifndef QS_ALLPOSTMESSAGE
189 #define QS_ALLPOSTMESSAGE 0x0100