3 * Copyright 2004 Jacek Caban
5 * Originally written for the Wine project, and issued under
6 * the wxWindows licence by kind permission of the author.
8 * Licence: wxWindows licence
11 #ifndef __HTMLHELP_H__
12 #define __HTMLHELP_H__
14 #define HH_DISPLAY_TOPIC 0x00
15 #define HH_HELP_FINDER 0x00
16 #define HH_DISPLAY_TOC 0x01
17 #define HH_DISPLAY_INDEX 0x02
18 #define HH_DISPLAY_SEARCH 0x03
19 #define HH_SET_WIN_TYPE 0x04
20 #define HH_GET_WIN_TYPE 0x05
21 #define HH_GET_WIN_HANDLE 0x06
22 #define HH_ENUM_INFO_TYPE 0x07
23 #define HH_SET_INFO_TYPE 0x08
25 #define HH_RESERVED1 0x0A
26 #define HH_RESERVED2 0x0B
27 #define HH_RESERVED3 0x0C
28 #define HH_KEYWORD_LOOKUP 0x0D
29 #define HH_DISPLAY_TEXT_POPUP 0x0E
30 #define HH_HELP_CONTEXT 0x0F
31 #define HH_TP_HELP_CONTEXTMENU 0x10
32 #define HH_TP_HELP_WM_HELP 0x11
33 #define HH_CLOSE_ALL 0x12
34 #define HH_ALINK_LOOKUP 0x13
35 #define HH_GET_LAST_ERROR 0x14
36 #define HH_ENUM_CATEGORY 0x15
37 #define HH_ENUM_CATEGORY_IT 0x16
38 #define HH_RESET_IT_FILTER 0x17
39 #define HH_SET_INCLUSIVE_FILTER 0x18
40 #define HH_SET_EXCLUSIVE_FILTER 0x19
41 #define HH_INITIALIZE 0x1C
42 #define HH_UNINITIALIZE 0x1D
43 #define HH_PRETRANSLATEMESSAGE 0xFD
44 #define HH_SET_GLOBAL_PROPERTY 0xFC
46 #define HHWIN_PROP_TAB_AUTOHIDESHOW 0x00000001
47 #define HHWIN_PROP_ONTOP 0x00000002
48 #define HHWIN_PROP_NOTITLEBAR 0x00000004
49 #define HHWIN_PROP_NODEF_STYLES 0x00000008
50 #define HHWIN_PROP_NODEF_EXSTYLES 0x00000010
51 #define HHWIN_PROP_TRI_PANE 0x00000020
52 #define HHWIN_PROP_NOTB_TEXT 0x00000040
53 #define HHWIN_PROP_POST_QUIT 0x00000080
54 #define HHWIN_PROP_AUTO_SYNC 0x00000100
55 #define HHWIN_PROP_TRACKING 0x00000200
56 #define HHWIN_PROP_TAB_SEARCH 0x00000400
57 #define HHWIN_PROP_TAB_HISTORY 0x00000800
58 #define HHWIN_PROP_TAB_FAVORITES 0x00001000
59 #define HHWIN_PROP_CHANGE_TITLE 0x00002000
60 #define HHWIN_PROP_NAV_ONLY_WIN 0x00004000
61 #define HHWIN_PROP_NO_TOOLBAR 0x00008000
62 #define HHWIN_PROP_MENU 0x00010000
63 #define HHWIN_PROP_TAB_ADVSEARCH 0x00020000
64 #define HHWIN_PROP_USER_POS 0x00040000
65 #define HHWIN_PROP_TAB_CUSTOM1 0x00080000
66 #define HHWIN_PROP_TAB_CUSTOM2 0x00100000
67 #define HHWIN_PROP_TAB_CUSTOM3 0x00200000
68 #define HHWIN_PROP_TAB_CUSTOM4 0x00400000
69 #define HHWIN_PROP_TAB_CUSTOM5 0x00800000
70 #define HHWIN_PROP_TAB_CUSTOM6 0x01000000
71 #define HHWIN_PROP_TAB_CUSTOM7 0x02000000
72 #define HHWIN_PROP_TAB_CUSTOM8 0x04000000
73 #define HHWIN_PROP_TAB_CUSTOM9 0x08000000
74 #define HHWIN_TB_MARGIN 0x10000000
76 #define HHWIN_PARAM_PROPERTIES 0x00000002
77 #define HHWIN_PARAM_STYLES 0x00000004
78 #define HHWIN_PARAM_EXSTYLES 0x00000008
79 #define HHWIN_PARAM_RECT 0x00000010
80 #define HHWIN_PARAM_NAV_WIDTH 0x00000020
81 #define HHWIN_PARAM_SHOWSTATE 0x00000040
82 #define HHWIN_PARAM_INFOTYPES 0x00000080
83 #define HHWIN_PARAM_TB_FLAGS 0x00000100
84 #define HHWIN_PARAM_EXPANSION 0x00000200
85 #define HHWIN_PARAM_TABPOS 0x00000400
86 #define HHWIN_PARAM_TABORDER 0x00000800
87 #define HHWIN_PARAM_HISTORY_COUNT 0x00001000
88 #define HHWIN_PARAM_CUR_TAB 0x00002000
90 #define HHWIN_BUTTON_EXPAND 0x00000002
91 #define HHWIN_BUTTON_BACK 0x00000004
92 #define HHWIN_BUTTON_FORWARD 0x00000008
93 #define HHWIN_BUTTON_STOP 0x00000010
94 #define HHWIN_BUTTON_REFRESH 0x00000020
95 #define HHWIN_BUTTON_HOME 0x00000040
96 #define HHWIN_BUTTON_BROWSE_FWD 0x00000080
97 #define HHWIN_BUTTON_BROWSE_BCK 0x00000100
98 #define HHWIN_BUTTON_NOTES 0x00000200
99 #define HHWIN_BUTTON_CONTENTS 0x00000400
100 #define HHWIN_BUTTON_SYNC 0x00000800
101 #define HHWIN_BUTTON_OPTIONS 0x00001000
102 #define HHWIN_BUTTON_PRINT 0x00002000
103 #define HHWIN_BUTTON_INDEX 0x00004000
104 #define HHWIN_BUTTON_SEARCH 0x00008000
105 #define HHWIN_BUTTON_HISTORY 0x00010000
106 #define HHWIN_BUTTON_FAVORITES 0x00020000
107 #define HHWIN_BUTTON_JUMP1 0x00040000
108 #define HHWIN_BUTTON_JUMP2 0x00080000
109 #define HHWIN_BUTTON_ZOOM 0x00100000
110 #define HHWIN_BUTTON_TOC_NEXT 0x00200000
111 #define HHWIN_BUTTON_TOC_PREV 0x00400000
113 #define HHWIN_DEF_BUTTONS \
114 (HHWIN_BUTTON_EXPAND | HHWIN_BUTTON_BACK | HHWIN_BUTTON_OPTIONS | HHWIN_BUTTON_PRINT)
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
141 #define HHN_FIRST (0U-860U)
142 #define HHN_LAST (0U-879U)
143 #define HHN_NAVCOMPLETE HHN_FIRST
144 #define HHN_TRACK (HHN_FIRST-1)
145 #define HHN_WINDOW_CREATE (HHN_FIRST-2)
152 typedef struct tagHH_NOTIFY
{
157 typedef struct tagHH_POPUPA
{
163 COLORREF clrForeground
;
164 COLORREF clrBackground
;
169 typedef struct tagHH_POPUPW
{
175 COLORREF clrForeground
;
176 COLORREF clrBackground
;
182 typedef HH_POPUPW HH_POPUP
;
184 typedef HH_POPUPA HH_POPUP
;
187 typedef struct tagHH_ALINKA
{
198 typedef struct tagHH_ALINKW
{
210 typedef HH_ALINKW HH_ALINK
;
211 typedef HH_ALINKW HH_AKLINK
;
213 typedef HH_ALINKA HH_ALINK
;
214 typedef HH_ALINKA HH_AKLINK
;
220 HHWIN_NAVTYPE_SEARCH
,
221 HHWIN_NAVTYPE_FAVORITES
,
222 HHWIN_NAVTYPE_HISTORY
,
223 HHWIN_NAVTYPE_AUTHOR
,
224 HHWIN_NAVTYPE_CUSTOM_FIRST
= 11
233 typedef struct tagHH_ENUM_IT
{
238 LPCSTR pszITDescription
;
239 } HH_ENUM_IT
, *PHH_ENUM_IT
;
241 typedef struct tagHH_ENUM_CAT
{
244 LPCSTR pszCatDescription
;
245 } HH_ENUM_CAT
, *PHH_ENUM_CAT
;
247 typedef struct tagHH_SET_INFOTYPE
{
250 LPCSTR pszInfoTypeName
;
253 typedef DWORD HH_INFOTYPE
, *PHH_INFOTYPE
;
261 #define HH_MAX_TABS 19
270 HH_TAB_CUSTOM_FIRST
= 11,
271 HH_TAB_CUSTOM_LAST
= HH_MAX_TABS
274 #define HH_MAX_TABS_CUSTOM (HH_TAB_CUSTOM_LAST-HH_TAB_CUSTOM_FIRST+1)
275 #define HH_FTS_DEFAULT_PROXIMITY -1
277 typedef struct tagHH_FTS_QUERYA
{
279 BOOL fUniCodeStrings
;
280 LPCSTR pszSearchQuery
;
288 typedef struct tagHH_FTS_QUERYW
{
290 BOOL fUniCodeStrings
;
291 LPCWSTR pszSearchQuery
;
300 typedef HH_FTS_QUERYW HH_FTS_QUERY
;
302 typedef HH_FTS_QUERYA HH_FTS_QUERY
;
305 typedef struct tagHH_WINTYPEA
{
307 BOOL fUniCodeStrings
;
309 DWORD fsValidMembers
;
310 DWORD fsWinProperties
;
318 PHH_INFOTYPE paInfoTypes
;
328 DWORD fsToolBarFlags
;
333 BYTE tabOrder
[HH_MAX_TABS
+1];
341 LPCSTR pszCustomTabs
;
342 } HH_WINTYPEA
, *PHH_WINTYPEA
;
344 typedef struct tagHH_WINTYPEW
{
346 BOOL fUniCodeStrings
;
348 DWORD fsValidMembers
;
349 DWORD fsWinProperties
;
357 PHH_INFOTYPE paInfoTypes
;
367 DWORD fsToolBarFlags
;
372 BYTE tabOrder
[HH_MAX_TABS
+1];
380 LPCWSTR pszCustomTabs
;
381 } HH_WINTYPEW
, *PHH_WINTYPEW
;
384 typedef HH_WINTYPEW HH_WINTYPE
;
386 typedef HH_WINTYPEA HH_WINTYPE
;
416 typedef struct tagHH_NTRACKA
{
420 PHH_WINTYPEA phhWinType
;
423 typedef struct tagHH_NTRACKW
{
427 PHH_WINTYPEW phhWinType
;
431 typedef HH_NTRACKW HH_NTRACK
;
433 typedef HH_NTRACKA HH_NTRACK
;
436 HWND WINAPI
HtmlHelpA(HWND
,LPCSTR
,UINT
,DWORD
);
437 HWND WINAPI
HtmlHelpA(HWND
,LPCSTR
,UINT
,DWORD
);
438 #define HtmlHelp WINELIB_NAME_AW(HtmlHelp)
440 #define ATOM_HTMLHELP_API_ANSI (LPTSTR)14
441 #define ATOM_HTMLHELP_API_UNICODE (LPTSTR)15
443 typedef enum tagHH_GPROPID
{
444 HH_GPROPID_SINGLETHREAD
= 1,
445 HH_GPROPID_TOOLBAR_MARGIN
= 2,
446 HH_GPROPID_UI_LANGUAGE
= 3,
447 HH_GPROPID_CURRENT_SUBSET
= 4,
448 HH_GPROPID_CONTENT_LANGUAGE
= 5
451 #ifdef __WIDL_OAIDL_H
453 typedef struct tagHH_GLOBAL_PROPERTY
457 } HH_GLOBAL_PROPERTY
;
459 #endif /* __WIDL_OAIDL_H */
465 #endif /* __HTMLHELP_H__ */