htmlhelp.h 8.6 KB

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