]>
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 | ||
0b190ffc RD |
42 | #ifndef LVCFMT_JUSTIFYMASK |
43 | #define LVCFMT_JUSTIFYMASK 0x0003 | |
44 | #endif | |
45 | ||
7391216e VS |
46 | // mingw32/cygwin don't have declarations for comctl32.dll 4.70+ stuff |
47 | #ifndef NM_CACHEHINT | |
48 | typedef struct tagNMLVCACHEHINT | |
49 | { | |
50 | NMHDR hdr; | |
51 | int iFrom; | |
52 | int iTo; | |
53 | } NMLVCACHEHINT; | |
54 | ||
55 | #define NM_CACHEHINT NMLVCACHEHINT | |
56 | #endif | |
57 | ||
58 | #ifndef LVN_ODCACHEHINT | |
59 | #define LVN_ODCACHEHINT (-113) | |
60 | #endif | |
61 | ||
62 | #ifndef ListView_GetHeader | |
63 | #define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0) | |
64 | #endif | |
65 | ||
66 | #ifndef LVM_GETHEADER | |
67 | #define LVM_GETHEADER (LVM_FIRST+31) | |
68 | #endif | |
69 | ||
70 | #ifndef Header_GetItemRect | |
71 | #define Header_GetItemRect(w,i,r) \ | |
72 | (BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r)) | |
73 | #endif | |
74 | ||
75 | #ifndef HDM_GETITEMRECT | |
76 | #define HDM_GETITEMRECT (HDM_FIRST+7) | |
77 | #endif | |
78 | ||
79 | #ifndef LVCF_IMAGE | |
80 | #define LVCF_IMAGE 0x0010 | |
81 | #endif | |
82 | ||
83 | #ifndef LVCFMT_BITMAP_ON_RIGHT | |
84 | #define LVCFMT_BITMAP_ON_RIGHT 0x1000 | |
85 | #endif | |
86 | ||
87 | #if defined(__GNUWIN32__) && !defined(LV_ITEM) \ | |
88 | && !wxCHECK_W32API_VERSION( 0, 5 ) | |
89 | typedef struct _LVITEMW { | |
90 | UINT mask; | |
91 | int iItem; | |
92 | int iSubItem; | |
93 | UINT state; | |
94 | UINT stateMask; | |
95 | LPWSTR pszText; | |
96 | int cchTextMax; | |
97 | int iImage; | |
98 | LPARAM lParam; | |
99 | #if (_WIN32_IE >= 0x0300) | |
100 | int iIndent; | |
101 | #endif | |
102 | } LV_ITEMW; | |
103 | typedef LV_ITEM LV_ITEMA; | |
104 | #endif | |
105 | ||
106 | #if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 ) | |
107 | #ifndef LV_DISPINFOA | |
108 | typedef struct tagNMLVDISPINFOA { | |
109 | NMHDR hdr; | |
110 | LV_ITEMA item; | |
111 | } NMLVDISPINFOA, FAR *LPNMLVDISPINFOA; | |
112 | #define _LV_DISPINFOA tagNMLVDISPINFOA | |
113 | #define LV_DISPINFOA NMLVDISPINFOA | |
114 | #endif | |
115 | #ifndef LV_DISPINFOW | |
116 | typedef struct tagNMLVDISPINFOW { | |
117 | NMHDR hdr; | |
118 | LV_ITEMW item; | |
119 | } NMLVDISPINFOW, FAR *LPNMLVDISPINFOW; | |
120 | #define _LV_DISPINFOW tagNMLVDISPINFOW | |
121 | #define LV_DISPINFOW NMLVDISPINFOW | |
122 | #endif | |
123 | #endif | |
124 | ||
125 | ||
126 | // ---------------------------------------------------------------------------- | |
127 | // MS HTML Help | |
128 | // ---------------------------------------------------------------------------- | |
129 | ||
130 | // instead of including htmlhelp.h, duplicate the things from it we need here: | |
131 | ||
132 | enum | |
133 | { | |
134 | HH_DISPLAY_TOPIC, | |
135 | HH_DISPLAY_TOC, | |
136 | HH_DISPLAY_INDEX, | |
137 | HH_DISPLAY_SEARCH, | |
138 | HH_SET_WIN_TYPE, | |
139 | HH_GET_WIN_TYPE, | |
140 | HH_GET_WIN_HANDLE, | |
141 | HH_ENUM_INFO_TYPE, | |
142 | HH_SET_INFO_TYPE, | |
143 | HH_SYNC, | |
144 | HH_RESERVED1, | |
145 | HH_RESERVED2, | |
146 | HH_RESERVED3, | |
147 | HH_KEYWORD_LOOKUP, | |
148 | HH_DISPLAY_TEXT_POPUP, | |
149 | HH_HELP_CONTEXT, | |
150 | HH_TP_HELP_CONTEXTMENU, | |
151 | HH_TP_HELP_WM_HELP, | |
152 | HH_CLOSE_ALL, | |
153 | HH_ALINK_LOOKUP, | |
154 | HH_GET_LAST_ERROR, | |
155 | HH_ENUM_CATEGORY, | |
156 | HH_ENUM_CATEGORY_IT, | |
157 | HH_RESET_IT_FILTER, | |
158 | HH_SET_INCLUSIVE_FILTER, | |
159 | HH_SET_EXCLUSIVE_FILTER | |
160 | }; | |
161 | ||
162 | struct HH_POPUP | |
163 | { | |
164 | int cbStruct; | |
165 | HINSTANCE hinst; | |
166 | UINT idString; | |
167 | LPCTSTR pszText; | |
168 | POINT pt; | |
169 | COLORREF clrForeground; | |
170 | COLORREF clrBackground; | |
171 | RECT rcMargins; | |
172 | LPCTSTR pszFont; | |
173 | }; | |
174 | ||
175 | struct HH_AKLINK | |
176 | { | |
177 | int cbStruct; | |
178 | BOOL fReserved; | |
179 | LPCTSTR pszKeywords; | |
180 | LPCTSTR pszUrl; | |
181 | LPCTSTR pszMsgText; | |
182 | LPCTSTR pszMsgTitle; | |
183 | LPCTSTR pszWindow; | |
184 | BOOL fIndexOnFail; | |
185 | }; | |
186 | ||
17b439e8 VS |
187 | |
188 | // ---------------------------------------------------------------------------- | |
189 | // Misc stuff | |
190 | // ---------------------------------------------------------------------------- | |
191 | ||
192 | #ifndef QS_ALLPOSTMESSAGE | |
193 | #define QS_ALLPOSTMESSAGE 0x0100 | |
194 | #endif | |
195 | ||
196 | ||
7391216e VS |
197 | #endif |
198 | // _WX_MISSING_H_ |