]>
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 #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
108 typedef struct tagNMLVDISPINFOA
{
111 } NMLVDISPINFOA
, FAR
*LPNMLVDISPINFOA
;
112 #define _LV_DISPINFOA tagNMLVDISPINFOA
113 #define LV_DISPINFOA NMLVDISPINFOA
116 typedef struct tagNMLVDISPINFOW
{
119 } NMLVDISPINFOW
, FAR
*LPNMLVDISPINFOW
;
120 #define _LV_DISPINFOW tagNMLVDISPINFOW
121 #define LV_DISPINFOW NMLVDISPINFOW
126 // ----------------------------------------------------------------------------
128 // ----------------------------------------------------------------------------
130 // instead of including htmlhelp.h, duplicate the things from it we need here:
148 HH_DISPLAY_TEXT_POPUP
,
150 HH_TP_HELP_CONTEXTMENU
,
158 HH_SET_INCLUSIVE_FILTER
,
159 HH_SET_EXCLUSIVE_FILTER
169 COLORREF clrForeground
;
170 COLORREF clrBackground
;
188 // ----------------------------------------------------------------------------
190 // ----------------------------------------------------------------------------
192 #ifndef QS_ALLPOSTMESSAGE
193 #define QS_ALLPOSTMESSAGE 0x0100