comparison fuhtark_test/include/winapi/htmlhelp.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef __HTMLHELP_H__
7 #define __HTMLHELP_H__
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #define HH_DISPLAY_TOPIC 0x0000
14 #define HH_HELP_FINDER 0x0000
15 #define HH_DISPLAY_TOC 0x0001
16 #define HH_DISPLAY_INDEX 0x0002
17 #define HH_DISPLAY_SEARCH 0x0003
18 #define HH_SET_WIN_TYPE 0x0004
19 #define HH_GET_WIN_TYPE 0x0005
20 #define HH_GET_WIN_HANDLE 0x0006
21 #define HH_ENUM_INFO_TYPE 0x0007
22 #define HH_SET_INFO_TYPE 0x0008
23 #define HH_SYNC 0x0009
24 #define HH_RESERVED1 0x000A
25 #define HH_RESERVED2 0x000B
26 #define HH_RESERVED3 0x000C
27 #define HH_KEYWORD_LOOKUP 0x000D
28 #define HH_DISPLAY_TEXT_POPUP 0x000E
29 #define HH_HELP_CONTEXT 0x000F
30 #define HH_TP_HELP_CONTEXTMENU 0x0010
31 #define HH_TP_HELP_WM_HELP 0x0011
32 #define HH_CLOSE_ALL 0x0012
33 #define HH_ALINK_LOOKUP 0x0013
34 #define HH_GET_LAST_ERROR 0x0014
35 #define HH_ENUM_CATEGORY 0x0015
36 #define HH_ENUM_CATEGORY_IT 0x0016
37 #define HH_RESET_IT_FILTER 0x0017
38 #define HH_SET_INCLUSIVE_FILTER 0x0018
39 #define HH_SET_EXCLUSIVE_FILTER 0x0019
40 #define HH_INITIALIZE 0x001C
41 #define HH_UNINITIALIZE 0x001D
42 #define HH_SET_QUERYSERVICE 0x001E
43 #define HH_PRETRANSLATEMESSAGE 0x00fd
44 #define HH_SET_GLOBAL_PROPERTY 0x00fc
45 #define HH_SAFE_DISPLAY_TOPIC 0x0020
46
47 #define HHWIN_PROP_TAB_AUTOHIDESHOW (1 << 0)
48 #define HHWIN_PROP_ONTOP (1 << 1)
49 #define HHWIN_PROP_NOTITLEBAR (1 << 2)
50 #define HHWIN_PROP_NODEF_STYLES (1 << 3)
51 #define HHWIN_PROP_NODEF_EXSTYLES (1 << 4)
52 #define HHWIN_PROP_TRI_PANE (1 << 5)
53 #define HHWIN_PROP_NOTB_TEXT (1 << 6)
54 #define HHWIN_PROP_POST_QUIT (1 << 7)
55 #define HHWIN_PROP_AUTO_SYNC (1 << 8)
56 #define HHWIN_PROP_TRACKING (1 << 9)
57 #define HHWIN_PROP_TAB_SEARCH (1 << 10)
58 #define HHWIN_PROP_TAB_HISTORY (1 << 11)
59 #define HHWIN_PROP_TAB_FAVORITES (1 << 12)
60 #define HHWIN_PROP_CHANGE_TITLE (1 << 13)
61 #define HHWIN_PROP_NAV_ONLY_WIN (1 << 14)
62 #define HHWIN_PROP_NO_TOOLBAR (1 << 15)
63 #define HHWIN_PROP_MENU (1 << 16)
64 #define HHWIN_PROP_TAB_ADVSEARCH (1 << 17)
65 #define HHWIN_PROP_USER_POS (1 << 18)
66 #define HHWIN_PROP_TAB_CUSTOM1 (1 << 19)
67 #define HHWIN_PROP_TAB_CUSTOM2 (1 << 20)
68 #define HHWIN_PROP_TAB_CUSTOM3 (1 << 21)
69 #define HHWIN_PROP_TAB_CUSTOM4 (1 << 22)
70 #define HHWIN_PROP_TAB_CUSTOM5 (1 << 23)
71 #define HHWIN_PROP_TAB_CUSTOM6 (1 << 24)
72 #define HHWIN_PROP_TAB_CUSTOM7 (1 << 25)
73 #define HHWIN_PROP_TAB_CUSTOM8 (1 << 26)
74 #define HHWIN_PROP_TAB_CUSTOM9 (1 << 27)
75 #define HHWIN_TB_MARGIN (1 << 28)
76
77 #define HHWIN_PARAM_PROPERTIES (1 << 1)
78 #define HHWIN_PARAM_STYLES (1 << 2)
79 #define HHWIN_PARAM_EXSTYLES (1 << 3)
80 #define HHWIN_PARAM_RECT (1 << 4)
81 #define HHWIN_PARAM_NAV_WIDTH (1 << 5)
82 #define HHWIN_PARAM_SHOWSTATE (1 << 6)
83 #define HHWIN_PARAM_INFOTYPES (1 << 7)
84 #define HHWIN_PARAM_TB_FLAGS (1 << 8)
85 #define HHWIN_PARAM_EXPANSION (1 << 9)
86 #define HHWIN_PARAM_TABPOS (1 << 10)
87 #define HHWIN_PARAM_TABORDER (1 << 11)
88 #define HHWIN_PARAM_HISTORY_COUNT (1 << 12)
89 #define HHWIN_PARAM_CUR_TAB (1 << 13)
90
91 #define HHWIN_BUTTON_EXPAND (1 << 1)
92 #define HHWIN_BUTTON_BACK (1 << 2)
93 #define HHWIN_BUTTON_FORWARD (1 << 3)
94 #define HHWIN_BUTTON_STOP (1 << 4)
95 #define HHWIN_BUTTON_REFRESH (1 << 5)
96 #define HHWIN_BUTTON_HOME (1 << 6)
97 #define HHWIN_BUTTON_BROWSE_FWD (1 << 7)
98 #define HHWIN_BUTTON_BROWSE_BCK (1 << 8)
99 #define HHWIN_BUTTON_NOTES (1 << 9)
100 #define HHWIN_BUTTON_CONTENTS (1 << 10)
101 #define HHWIN_BUTTON_SYNC (1 << 11)
102 #define HHWIN_BUTTON_OPTIONS (1 << 12)
103 #define HHWIN_BUTTON_PRINT (1 << 13)
104 #define HHWIN_BUTTON_INDEX (1 << 14)
105 #define HHWIN_BUTTON_SEARCH (1 << 15)
106 #define HHWIN_BUTTON_HISTORY (1 << 16)
107 #define HHWIN_BUTTON_FAVORITES (1 << 17)
108 #define HHWIN_BUTTON_JUMP1 (1 << 18)
109 #define HHWIN_BUTTON_JUMP2 (1 << 19)
110 #define HHWIN_BUTTON_ZOOM (1 << 20)
111 #define HHWIN_BUTTON_TOC_NEXT (1 << 21)
112 #define HHWIN_BUTTON_TOC_PREV (1 << 22)
113
114 #define HHWIN_DEF_BUTTONS (HHWIN_BUTTON_EXPAND | HHWIN_BUTTON_BACK | HHWIN_BUTTON_OPTIONS | HHWIN_BUTTON_PRINT)
115
116 #define IDTB_EXPAND 200
117 #define IDTB_CONTRACT 201
118 #define IDTB_STOP 202
119 #define IDTB_REFRESH 203
120 #define IDTB_BACK 204
121 #define IDTB_HOME 205
122 #define IDTB_SYNC 206
123 #define IDTB_PRINT 207
124 #define IDTB_OPTIONS 208
125 #define IDTB_FORWARD 209
126 #define IDTB_NOTES 210
127 #define IDTB_BROWSE_FWD 211
128 #define IDTB_BROWSE_BACK 212
129 #define IDTB_CONTENTS 213
130 #define IDTB_INDEX 214
131 #define IDTB_SEARCH 215
132 #define IDTB_HISTORY 216
133 #define IDTB_FAVORITES 217
134 #define IDTB_JUMP1 218
135 #define IDTB_JUMP2 219
136 #define IDTB_CUSTOMIZE 221
137 #define IDTB_ZOOM 222
138 #define IDTB_TOC_NEXT 223
139 #define IDTB_TOC_PREV 224
140
141 #define HHN_FIRST (0U-860U)
142 #define HHN_LAST (0U-879U)
143
144 #define HHN_NAVCOMPLETE (HHN_FIRST-0)
145 #define HHN_TRACK (HHN_FIRST-1)
146 #define HHN_WINDOW_CREATE (HHN_FIRST-2)
147
148 typedef struct tagHHN_NOTIFY {
149 NMHDR hdr;
150 PCSTR pszUrl;
151 } HHN_NOTIFY;
152
153 typedef struct tagHH_POPUP {
154 int cbStruct;
155 HINSTANCE hinst;
156 UINT idString;
157 LPCTSTR pszText;
158 POINT pt;
159 COLORREF clrForeground;
160 COLORREF clrBackground;
161 RECT rcMargins;
162 LPCTSTR pszFont;
163 } HH_POPUP;
164
165 typedef struct tagHH_AKLINK {
166 int cbStruct;
167 WINBOOL fReserved;
168 LPCTSTR pszKeywords;
169 LPCTSTR pszUrl;
170 LPCTSTR pszMsgText;
171 LPCTSTR pszMsgTitle;
172 LPCTSTR pszWindow;
173 WINBOOL fIndexOnFail;
174 } HH_AKLINK;
175
176 enum {
177 HHWIN_NAVTYPE_TOC,HHWIN_NAVTYPE_INDEX,HHWIN_NAVTYPE_SEARCH,HHWIN_NAVTYPE_FAVORITES,HHWIN_NAVTYPE_HISTORY,HHWIN_NAVTYPE_AUTHOR,
178 HHWIN_NAVTYPE_CUSTOM_FIRST = 11
179 };
180
181 enum {
182 IT_INCLUSIVE,IT_EXCLUSIVE,IT_HIDDEN
183 };
184
185 typedef struct tagHH_ENUM_IT {
186 int cbStruct;
187 int iType;
188 LPCSTR pszCatName;
189 LPCSTR pszITName;
190 LPCSTR pszITDescription;
191 } HH_ENUM_IT,*PHH_ENUM_IT;
192
193 typedef struct tagHH_ENUM_CAT {
194 int cbStruct;
195 LPCSTR pszCatName;
196 LPCSTR pszCatDescription;
197 } HH_ENUM_CAT,*PHH_ENUM_CAT;
198
199 typedef struct tagHH_SET_INFOTYPE {
200 int cbStruct;
201 LPCSTR pszCatName;
202 LPCSTR pszInfoTypeName;
203 } HH_SET_INFOTYPE,*PHH_SET_INFOTYPE;
204
205 typedef DWORD HH_INFOTYPE;
206 typedef HH_INFOTYPE *PHH_INFOTYPE;
207
208 enum {
209 HHWIN_NAVTAB_TOP,HHWIN_NAVTAB_LEFT,HHWIN_NAVTAB_BOTTOM
210 };
211
212 #define HH_MAX_TABS 19
213
214 enum {
215 HH_TAB_CONTENTS,HH_TAB_INDEX,HH_TAB_SEARCH,HH_TAB_FAVORITES,HH_TAB_HISTORY,HH_TAB_AUTHOR,HH_TAB_CUSTOM_FIRST = 11,
216 HH_TAB_CUSTOM_LAST = HH_MAX_TABS
217 };
218
219 #define HH_MAX_TABS_CUSTOM (HH_TAB_CUSTOM_LAST - HH_TAB_CUSTOM_FIRST + 1)
220
221 #define HH_FTS_DEFAULT_PROXIMITY (-1)
222
223 typedef struct tagHH_FTS_QUERY {
224 int cbStruct;
225 WINBOOL fUniCodeStrings;
226 LPCTSTR pszSearchQuery;
227 LONG iProximity;
228 WINBOOL fStemmedSearch;
229 WINBOOL fTitleOnly;
230 WINBOOL fExecute;
231 LPCTSTR pszWindow;
232 } HH_FTS_QUERY;
233
234 typedef struct tagHH_WINTYPE {
235 int cbStruct;
236 WINBOOL fUniCodeStrings;
237 LPCTSTR pszType;
238 DWORD fsValidMembers;
239 DWORD fsWinProperties;
240 LPCTSTR pszCaption;
241 DWORD dwStyles;
242 DWORD dwExStyles;
243 RECT rcWindowPos;
244 int nShowState;
245 HWND hwndHelp;
246 HWND hwndCaller;
247 HH_INFOTYPE *paInfoTypes;
248 HWND hwndToolBar;
249 HWND hwndNavigation;
250 HWND hwndHTML;
251 int iNavWidth;
252 RECT rcHTML;
253 LPCTSTR pszToc;
254 LPCTSTR pszIndex;
255 LPCTSTR pszFile;
256 LPCTSTR pszHome;
257 DWORD fsToolBarFlags;
258 WINBOOL fNotExpanded;
259 int curNavType;
260 int tabpos;
261 int idNotify;
262 BYTE tabOrder[HH_MAX_TABS + 1];
263 int cHistory;
264 LPCTSTR pszJump1;
265 LPCTSTR pszJump2;
266 LPCTSTR pszUrlJump1;
267 LPCTSTR pszUrlJump2;
268 RECT rcMinSize;
269 int cbInfoTypes;
270 LPCTSTR pszCustomTabs;
271 } HH_WINTYPE,*PHH_WINTYPE;
272
273 enum {
274 HHACT_TAB_CONTENTS,HHACT_TAB_INDEX,HHACT_TAB_SEARCH,HHACT_TAB_HISTORY,HHACT_TAB_FAVORITES,HHACT_EXPAND,HHACT_CONTRACT,
275 HHACT_BACK,HHACT_FORWARD,HHACT_STOP,HHACT_REFRESH,HHACT_HOME,HHACT_SYNC,HHACT_OPTIONS,HHACT_PRINT,HHACT_HIGHLIGHT,HHACT_CUSTOMIZE,
276 HHACT_JUMP1,HHACT_JUMP2,HHACT_ZOOM,HHACT_TOC_NEXT,HHACT_TOC_PREV,HHACT_NOTES,HHACT_LAST_ENUM
277 };
278
279 typedef struct tagHHNTRACK {
280 NMHDR hdr;
281 PCSTR pszCurUrl;
282 int idAction;
283 HH_WINTYPE *phhWinType;
284 } HHNTRACK;
285
286 #ifdef UNICODE
287 #define HtmlHelp HtmlHelpW
288 #else
289 #define HtmlHelp HtmlHelpA
290 #endif
291
292 HWND WINAPI HtmlHelpA(HWND hwndCaller,LPCSTR pszFile,UINT uCommand,DWORD_PTR dwData);
293 HWND WINAPI HtmlHelpW(HWND hwndCaller,LPCWSTR pszFile,UINT uCommand,DWORD_PTR dwData);
294
295 #define ATOM_HTMLHELP_API_ANSI (LPTSTR)((DWORD)((WORD)(14)))
296 #define ATOM_HTMLHELP_API_UNICODE (LPTSTR)((DWORD)((WORD)(15)))
297
298 typedef enum tagHH_GPROPID {
299 HH_GPROPID_SINGLETHREAD=1,HH_GPROPID_TOOLBAR_MARGIN=2,HH_GPROPID_UI_LANGUAGE=3,HH_GPROPID_CURRENT_SUBSET=4,HH_GPROPID_CONTENT_LANGUAGE=5
300 } HH_GPROPID;
301
302 #ifdef __oaidl_h__
303 #pragma pack(push,8)
304
305 typedef struct tagHH_GLOBAL_PROPERTY {
306 HH_GPROPID id;
307 VARIANT var;
308 } HH_GLOBAL_PROPERTY;
309
310 #pragma pack(pop)
311 #endif
312
313 #ifdef __cplusplus
314 }
315 #endif
316 #endif