]>
Commit | Line | Data |
---|---|---|
7391216e VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: missing.h | |
3 | // Purpose: Declarations for parts of the Win32 SDK that are missing in | |
4 | // the version that comes with some compilers | |
5 | // Created: 2002/04/23 | |
6 | // RCS-ID: $Id$ | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_MISSING_H_ | |
11 | #define _WX_MISSING_H_ | |
12 | ||
13 | // ---------------------------------------------------------------------------- | |
14 | // ListView common control | |
15 | // ---------------------------------------------------------------------------- | |
16 | ||
17 | #ifndef LVHT_ONITEM | |
18 | #define LVHT_ONITEM \ | |
19 | (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON) | |
20 | #endif | |
21 | ||
22 | #ifndef LVM_SETEXTENDEDLISTVIEWSTYLE | |
23 | #define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54) | |
24 | #endif | |
25 | ||
26 | #ifndef LVS_EX_FULLROWSELECT | |
27 | #define LVS_EX_FULLROWSELECT 0x00000020 | |
28 | #endif | |
29 | ||
30 | #ifndef LVS_OWNERDATA | |
31 | #define LVS_OWNERDATA 0x1000 | |
32 | #endif | |
33 | ||
34 | #ifndef LVM_FIRST | |
35 | #define LVM_FIRST 0x1000 | |
36 | #endif | |
37 | ||
38 | #ifndef HDM_FIRST | |
39 | #define HDM_FIRST 0x1200 | |
40 | #endif | |
41 | ||
42 | // mingw32/cygwin don't have declarations for comctl32.dll 4.70+ stuff | |
43 | #ifndef NM_CACHEHINT | |
44 | typedef struct tagNMLVCACHEHINT | |
45 | { | |
46 | NMHDR hdr; | |
47 | int iFrom; | |
48 | int iTo; | |
49 | } NMLVCACHEHINT; | |
50 | ||
51 | #define NM_CACHEHINT NMLVCACHEHINT | |
52 | #endif | |
53 | ||
54 | #ifndef LVN_ODCACHEHINT | |
55 | #define LVN_ODCACHEHINT (-113) | |
56 | #endif | |
57 | ||
58 | #ifndef ListView_GetHeader | |
59 | #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0) | |
60 | #endif | |
61 | ||
62 | #ifndef LVM_GETHEADER | |
63 | #define LVM_GETHEADER (LVM_FIRST+31) | |
64 | #endif | |
65 | ||
66 | #ifndef Header_GetItemRect | |
67 | #define Header_GetItemRect(w,i,r) \ | |
68 | (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r)) | |
69 | #endif | |
70 | ||
71 | #ifndef HDM_GETITEMRECT | |
72 | #define HDM_GETITEMRECT (HDM_FIRST+7) | |
73 | #endif | |
74 | ||
75 | #ifndef LVCF_IMAGE | |
76 | #define LVCF_IMAGE 0x0010 | |
77 | #endif | |
78 | ||
79 | #ifndef LVCFMT_BITMAP_ON_RIGHT | |
80 | #define LVCFMT_BITMAP_ON_RIGHT 0x1000 | |
81 | #endif | |
82 | ||
83 | #if defined(__GNUWIN32__) && !defined(LV_ITEM) \ | |
84 | && !wxCHECK_W32API_VERSION( 0, 5 ) | |
85 | typedef struct _LVITEMW { | |
86 | UINT mask; | |
87 | int iItem; | |
88 | int iSubItem; | |
89 | UINT state; | |
90 | UINT stateMask; | |
91 | LPWSTR pszText; | |
92 | int cchTextMax; | |
93 | int iImage; | |
94 | LPARAM lParam; | |
95 | #if (_WIN32_IE >= 0x0300) | |
96 | int iIndent; | |
97 | #endif | |
98 | } LV_ITEMW; | |
99 | typedef LV_ITEM LV_ITEMA; | |
100 | #endif | |
101 | ||
102 | #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 ) | |
103 | #ifndef LV_DISPINFOA | |
104 | typedef struct tagNMLVDISPINFOA { | |
105 | NMHDR hdr; | |
106 | LV_ITEMA item; | |
107 | } NMLVDISPINFOA, FAR *LPNMLVDISPINFOA; | |
108 | #define _LV_DISPINFOA tagNMLVDISPINFOA | |
109 | #define LV_DISPINFOA NMLVDISPINFOA | |
110 | #endif | |
111 | #ifndef LV_DISPINFOW | |
112 | typedef struct tagNMLVDISPINFOW { | |
113 | NMHDR hdr; | |
114 | LV_ITEMW item; | |
115 | } NMLVDISPINFOW, FAR *LPNMLVDISPINFOW; | |
116 | #define _LV_DISPINFOW tagNMLVDISPINFOW | |
117 | #define LV_DISPINFOW NMLVDISPINFOW | |
118 | #endif | |
119 | #endif | |
120 | ||
121 | ||
122 | // ---------------------------------------------------------------------------- | |
123 | // MS HTML Help | |
124 | // ---------------------------------------------------------------------------- | |
125 | ||
126 | // instead of including htmlhelp.h, duplicate the things from it we need here: | |
127 | ||
128 | enum | |
129 | { | |
130 | HH_DISPLAY_TOPIC, | |
131 | HH_DISPLAY_TOC, | |
132 | HH_DISPLAY_INDEX, | |
133 | HH_DISPLAY_SEARCH, | |
134 | HH_SET_WIN_TYPE, | |
135 | HH_GET_WIN_TYPE, | |
136 | HH_GET_WIN_HANDLE, | |
137 | HH_ENUM_INFO_TYPE, | |
138 | HH_SET_INFO_TYPE, | |
139 | HH_SYNC, | |
140 | HH_RESERVED1, | |
141 | HH_RESERVED2, | |
142 | HH_RESERVED3, | |
143 | HH_KEYWORD_LOOKUP, | |
144 | HH_DISPLAY_TEXT_POPUP, | |
145 | HH_HELP_CONTEXT, | |
146 | HH_TP_HELP_CONTEXTMENU, | |
147 | HH_TP_HELP_WM_HELP, | |
148 | HH_CLOSE_ALL, | |
149 | HH_ALINK_LOOKUP, | |
150 | HH_GET_LAST_ERROR, | |
151 | HH_ENUM_CATEGORY, | |
152 | HH_ENUM_CATEGORY_IT, | |
153 | HH_RESET_IT_FILTER, | |
154 | HH_SET_INCLUSIVE_FILTER, | |
155 | HH_SET_EXCLUSIVE_FILTER | |
156 | }; | |
157 | ||
158 | struct HH_POPUP | |
159 | { | |
160 | int cbStruct; | |
161 | HINSTANCE hinst; | |
162 | UINT idString; | |
163 | LPCTSTR pszText; | |
164 | POINT pt; | |
165 | COLORREF clrForeground; | |
166 | COLORREF clrBackground; | |
167 | RECT rcMargins; | |
168 | LPCTSTR pszFont; | |
169 | }; | |
170 | ||
171 | struct HH_AKLINK | |
172 | { | |
173 | int cbStruct; | |
174 | BOOL fReserved; | |
175 | LPCTSTR pszKeywords; | |
176 | LPCTSTR pszUrl; | |
177 | LPCTSTR pszMsgText; | |
178 | LPCTSTR pszMsgTitle; | |
179 | LPCTSTR pszWindow; | |
180 | BOOL fIndexOnFail; | |
181 | }; | |
182 | ||
183 | #endif | |
184 | // _WX_MISSING_H_ |