hh.hpp
上传用户:anhe341234
上传日期:2021-04-11
资源大小:398k
文件大小:14k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 2002 by Borland Software Corporation
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'hh.pas' rev: 6.00
  5. #ifndef hhHPP
  6. #define hhHPP
  7. #pragma delphiheader begin
  8. #pragma option push -w-
  9. #pragma option push -Vx
  10. #include <Registry.hpp> // Pascal unit
  11. #include <SysUtils.hpp> // Pascal unit
  12. #include <Windows.hpp> // Pascal unit
  13. #include <SysInit.hpp> // Pascal unit
  14. #include <System.hpp> // Pascal unit
  15. //-- user supplied -----------------------------------------------------------
  16. namespace Hh
  17. {
  18. //-- type declarations -------------------------------------------------------
  19. #pragma pack(push, 1)
  20. struct tagHH_LAST_ERROR
  21. {
  22. int cbStruct;
  23. int hr;
  24. wchar_t *description;
  25. } ;
  26. #pragma pack(pop)
  27. typedef tagHH_LAST_ERROR  HH_LAST_ERROR;
  28. typedef tagHH_LAST_ERROR  THHLastError;
  29. struct tagHHN_NOTIFY;
  30. typedef tagHHN_NOTIFY *PHHNNotify;
  31. #pragma pack(push, 1)
  32. struct tagHHN_NOTIFY
  33. {
  34. tagNMHDR hdr;
  35. char *pszUrl;
  36. } ;
  37. #pragma pack(pop)
  38. typedef tagHHN_NOTIFY  HHN_NOTIFY;
  39. typedef tagHHN_NOTIFY  THHNNotify;
  40. struct tagHH_POPUP;
  41. typedef tagHH_POPUP *PHHPopup;
  42. #pragma pack(push, 1)
  43. struct tagHH_POPUP
  44. {
  45. int cbStruct;
  46. unsigned hinst;
  47. unsigned idString;
  48. char *pszText;
  49. Types::TPoint pt;
  50. unsigned clrForeground;
  51. unsigned clrBackground;
  52. Types::TRect rcMargins;
  53. char *pszFont;
  54. } ;
  55. #pragma pack(pop)
  56. typedef tagHH_POPUP  HH_POPUP;
  57. typedef tagHH_POPUP  THHPopup;
  58. struct tagHH_AKLINK;
  59. typedef tagHH_AKLINK *PHHAKLink;
  60. #pragma pack(push, 1)
  61. struct tagHH_AKLINK
  62. {
  63. int cbStruct;
  64. BOOL fReserved;
  65. char *pszKeywords;
  66. char *pszUrl;
  67. char *pszMsgText;
  68. char *pszMsgTitle;
  69. char *pszWindow;
  70. BOOL fIndexOnFail;
  71. } ;
  72. #pragma pack(pop)
  73. typedef tagHH_AKLINK  HH_AKLINK;
  74. typedef tagHH_AKLINK  THHAKLink;
  75. struct tagHH_ENUM_IT;
  76. typedef tagHH_ENUM_IT *PHHEnumIT;
  77. #pragma pack(push, 1)
  78. struct tagHH_ENUM_IT
  79. {
  80. int cbStruct;
  81. int iType;
  82. char *pszCatName;
  83. char *pszITName;
  84. char *pszITDescription;
  85. } ;
  86. #pragma pack(pop)
  87. typedef tagHH_ENUM_IT  THHEnumIT;
  88. struct tagHH_ENUM_CAT;
  89. typedef tagHH_ENUM_CAT *PHHEnumCat;
  90. #pragma pack(push, 1)
  91. struct tagHH_ENUM_CAT
  92. {
  93. int cbStruct;
  94. char *pszCatName;
  95. char *pszCatDescription;
  96. } ;
  97. #pragma pack(pop)
  98. typedef tagHH_ENUM_CAT  THHEnumCat;
  99. struct tagHH_SET_INFOTYPE;
  100. typedef tagHH_SET_INFOTYPE *PHHSetInfoType;
  101. #pragma pack(push, 1)
  102. struct tagHH_SET_INFOTYPE
  103. {
  104. int cbStruct;
  105. char *pszCatName;
  106. char *pszInfoTypeName;
  107. } ;
  108. #pragma pack(pop)
  109. typedef tagHH_SET_INFOTYPE  THHSetInfoType;
  110. typedef unsigned HH_INFOTYPE;
  111. typedef unsigned THHInfoType;
  112. typedef unsigned *PHHInfoType;
  113. struct tagHH_FTS_QUERY;
  114. typedef tagHH_FTS_QUERY *PHHFtsQuery;
  115. #pragma pack(push, 1)
  116. struct tagHH_FTS_QUERY
  117. {
  118. int cbStruct;
  119. BOOL fUniCodeStrings;
  120. char *pszSearchQuery;
  121. int iProximity;
  122. BOOL fStemmedSearch;
  123. BOOL fTitleOnly;
  124. BOOL fExecute;
  125. char *pszWindow;
  126. } ;
  127. #pragma pack(pop)
  128. typedef tagHH_FTS_QUERY  THHFtsQuery;
  129. struct tagHH_WINTYPE;
  130. typedef tagHH_WINTYPE *PHHWinType;
  131. #pragma pack(push, 1)
  132. struct tagHH_WINTYPE
  133. {
  134. int cbStruct;
  135. BOOL fUniCodeStrings;
  136. char *pszType;
  137. unsigned fsValidMembers;
  138. unsigned fsWinProperties;
  139. char *pszCaption;
  140. unsigned dwStyles;
  141. unsigned dwExStyles;
  142. Types::TRect rcWindowPos;
  143. int nShowState;
  144. HWND hwndHelp;
  145. HWND hwndCaller;
  146. unsigned *paInfoTypes;
  147. HWND hwndToolBar;
  148. HWND hwndNavigation;
  149. HWND hwndHTML;
  150. int iNavWidth;
  151. Types::TRect rcHTML;
  152. char *pszToc;
  153. char *pszIndex;
  154. char *pszFile;
  155. char *pszHome;
  156. unsigned fsToolBarFlags;
  157. BOOL fNotExpanded;
  158. int curNavType;
  159. int tabpos;
  160. int idNotify;
  161. Byte tabOrder[20];
  162. int cHistory;
  163. char *pszJump1;
  164. char *pszJump2;
  165. char *pszUrlJump1;
  166. char *pszUrlJump2;
  167. Types::TRect rcMinSize;
  168. int cbInfoTypes;
  169. char *pszCustomTabs;
  170. } ;
  171. #pragma pack(pop)
  172. typedef tagHH_WINTYPE  HH_WINTYPE;
  173. typedef tagHH_WINTYPE  THHWinType;
  174. struct tagHHNTRACK;
  175. typedef tagHHNTRACK *PHHNTrack;
  176. #pragma pack(push, 1)
  177. struct tagHHNTRACK
  178. {
  179. tagNMHDR hdr;
  180. char *pszCurUrl;
  181. int idAction;
  182. tagHH_WINTYPE *phhWinType;
  183. } ;
  184. #pragma pack(pop)
  185. typedef tagHHNTRACK  HHNTRACK;
  186. typedef tagHHNTRACK  THHNTrack;
  187. typedef Shortint tagHH_GPROPID;
  188. typedef tagHH_GPROPID HH_GPROPID;
  189. typedef tagHH_GPROPID THHGPropID;
  190. struct tagHH_GLOBAL_PROPERTY;
  191. typedef tagHH_GLOBAL_PROPERTY *PHHGlobalProperty;
  192. struct tagHH_GLOBAL_PROPERTY
  193. {
  194. tagHH_GPROPID id;
  195. int Dummy;
  196. Variant var_;
  197. } ;
  198. typedef tagHH_GLOBAL_PROPERTY  HH_GLOBAL_PROPERTY;
  199. typedef tagHH_GLOBAL_PROPERTY  THHGlobalProperty;
  200. //-- var, const, procedure ---------------------------------------------------
  201. extern PACKAGE unsigned HHCtrlHandle;
  202. extern PACKAGE bool AutoLoadAPI;
  203. #define hhctrlLib "hhctrl.ocx"
  204. extern PACKAGE HWND __stdcall (*HtmlHelpA)(HWND hwndCaller, char * pszFile, unsigned uCommand, unsigned dwData);
  205. extern PACKAGE HWND __stdcall (*HtmlHelpW)(HWND hwndCaller, wchar_t * pszFile, unsigned uCommand, unsigned dwData);
  206. extern PACKAGE HWND __stdcall (*HtmlHelp)(HWND hwndCaller, char * pszFile, unsigned uCommand, unsigned dwData);
  207. static const Shortint ATOM_HTMLHELP_API_ANSI = 0xe;
  208. static const Shortint ATOM_HTMLHELP_API_UNICODE = 0xf;
  209. static const Shortint HH_DISPLAY_TOPIC = 0x0;
  210. static const Shortint HH_HELP_FINDER = 0x0;
  211. static const Shortint HH_DISPLAY_TOC = 0x1;
  212. static const Shortint HH_DISPLAY_INDEX = 0x2;
  213. static const Shortint HH_DISPLAY_SEARCH = 0x3;
  214. static const Shortint HH_SET_WIN_TYPE = 0x4;
  215. static const Shortint HH_GET_WIN_TYPE = 0x5;
  216. static const Shortint HH_GET_WIN_HANDLE = 0x6;
  217. static const Shortint HH_ENUM_INFO_TYPE = 0x7;
  218. static const Shortint HH_SET_INFO_TYPE = 0x8;
  219. static const Shortint HH_SYNC = 0x9;
  220. static const Shortint HH_RESERVED1 = 0xa;
  221. static const Shortint HH_RESERVED2 = 0xb;
  222. static const Shortint HH_RESERVED3 = 0xc;
  223. static const Shortint HH_KEYWORD_LOOKUP = 0xd;
  224. static const Shortint HH_DISPLAY_TEXT_POPUP = 0xe;
  225. static const Shortint HH_HELP_CONTEXT = 0xf;
  226. static const Shortint HH_TP_HELP_CONTEXTMENU = 0x10;
  227. static const Shortint HH_TP_HELP_WM_HELP = 0x11;
  228. static const Shortint HH_CLOSE_ALL = 0x12;
  229. static const Shortint HH_ALINK_LOOKUP = 0x13;
  230. static const Shortint HH_GET_LAST_ERROR = 0x14;
  231. static const Shortint HH_ENUM_CATEGORY = 0x15;
  232. static const Shortint HH_ENUM_CATEGORY_IT = 0x16;
  233. static const Shortint HH_RESET_IT_FILTER = 0x17;
  234. static const Shortint HH_SET_INCLUSIVE_FILTER = 0x18;
  235. static const Shortint HH_SET_EXCLUSIVE_FILTER = 0x19;
  236. static const Shortint HH_INITIALIZE = 0x1c;
  237. static const Shortint HH_UNINITIALIZE = 0x1d;
  238. static const Byte HH_PRETRANSLATEMESSAGE = 0xfd;
  239. static const Byte HH_SET_GLOBAL_PROPERTY = 0xfc;
  240. static const Shortint HHWIN_PROP_TAB_AUTOHIDESHOW = 0x1;
  241. static const Shortint HHWIN_PROP_ONTOP = 0x2;
  242. static const Shortint HHWIN_PROP_NOTITLEBAR = 0x4;
  243. static const Shortint HHWIN_PROP_NODEF_STYLES = 0x8;
  244. static const Shortint HHWIN_PROP_NODEF_EXSTYLES = 0x10;
  245. static const Shortint HHWIN_PROP_TRI_PANE = 0x20;
  246. static const Shortint HHWIN_PROP_NOTB_TEXT = 0x40;
  247. static const Byte HHWIN_PROP_POST_QUIT = 0x80;
  248. static const Word HHWIN_PROP_AUTO_SYNC = 0x100;
  249. static const Word HHWIN_PROP_TRACKING = 0x200;
  250. static const Word HHWIN_PROP_TAB_SEARCH = 0x400;
  251. static const Word HHWIN_PROP_TAB_HISTORY = 0x800;
  252. static const Word HHWIN_PROP_TAB_FAVORITES = 0x1000;
  253. static const Word HHWIN_PROP_CHANGE_TITLE = 0x2000;
  254. static const Word HHWIN_PROP_NAV_ONLY_WIN = 0x4000;
  255. static const Word HHWIN_PROP_NO_TOOLBAR = 0x8000;
  256. static const int HHWIN_PROP_MENU = 0x10000;
  257. static const int HHWIN_PROP_TAB_ADVSEARCH = 0x20000;
  258. static const int HHWIN_PROP_USER_POS = 0x40000;
  259. static const int HHWIN_PROP_TAB_CUSTOM1 = 0x80000;
  260. static const int HHWIN_PROP_TAB_CUSTOM2 = 0x100000;
  261. static const int HHWIN_PROP_TAB_CUSTOM3 = 0x200000;
  262. static const int HHWIN_PROP_TAB_CUSTOM4 = 0x400000;
  263. static const int HHWIN_PROP_TAB_CUSTOM5 = 0x800000;
  264. static const int HHWIN_PROP_TAB_CUSTOM6 = 0x1000000;
  265. static const int HHWIN_PROP_TAB_CUSTOM7 = 0x2000000;
  266. static const int HHWIN_PROP_TAB_CUSTOM8 = 0x4000000;
  267. static const int HHWIN_PROP_TAB_CUSTOM9 = 0x8000000;
  268. static const int HHWIN_TB_MARGIN = 0x10000000;
  269. static const Shortint HHWIN_PARAM_PROPERTIES = 0x2;
  270. static const Shortint HHWIN_PARAM_STYLES = 0x4;
  271. static const Shortint HHWIN_PARAM_EXSTYLES = 0x8;
  272. static const Shortint HHWIN_PARAM_RECT = 0x10;
  273. static const Shortint HHWIN_PARAM_NAV_WIDTH = 0x20;
  274. static const Shortint HHWIN_PARAM_SHOWSTATE = 0x40;
  275. static const Byte HHWIN_PARAM_INFOTYPES = 0x80;
  276. static const Word HHWIN_PARAM_TB_FLAGS = 0x100;
  277. static const Word HHWIN_PARAM_EXPANSION = 0x200;
  278. static const Word HHWIN_PARAM_TABPOS = 0x400;
  279. static const Word HHWIN_PARAM_TABORDER = 0x800;
  280. static const Word HHWIN_PARAM_HISTORY_COUNT = 0x1000;
  281. static const Word HHWIN_PARAM_CUR_TAB = 0x2000;
  282. static const Shortint HHWIN_BUTTON_EXPAND = 0x2;
  283. static const Shortint HHWIN_BUTTON_BACK = 0x4;
  284. static const Shortint HHWIN_BUTTON_FORWARD = 0x8;
  285. static const Shortint HHWIN_BUTTON_STOP = 0x10;
  286. static const Shortint HHWIN_BUTTON_REFRESH = 0x20;
  287. static const Shortint HHWIN_BUTTON_HOME = 0x40;
  288. static const Byte HHWIN_BUTTON_BROWSE_FWD = 0x80;
  289. static const Word HHWIN_BUTTON_BROWSE_BCK = 0x100;
  290. static const Word HHWIN_BUTTON_NOTES = 0x200;
  291. static const Word HHWIN_BUTTON_CONTENTS = 0x400;
  292. static const Word HHWIN_BUTTON_SYNC = 0x800;
  293. static const Word HHWIN_BUTTON_OPTIONS = 0x1000;
  294. static const Word HHWIN_BUTTON_PRINT = 0x2000;
  295. static const Word HHWIN_BUTTON_INDEX = 0x4000;
  296. static const Word HHWIN_BUTTON_SEARCH = 0x8000;
  297. static const int HHWIN_BUTTON_HISTORY = 0x10000;
  298. static const int HHWIN_BUTTON_FAVORITES = 0x20000;
  299. static const int HHWIN_BUTTON_JUMP1 = 0x40000;
  300. static const int HHWIN_BUTTON_JUMP2 = 0x80000;
  301. static const int HHWIN_BUTTON_ZOOM = 0x100000;
  302. static const int HHWIN_BUTTON_TOC_NEXT = 0x200000;
  303. static const int HHWIN_BUTTON_TOC_PREV = 0x400000;
  304. static const Word HHWIN_DEF_BUTTONS = 0x3006;
  305. static const Byte IDTB_EXPAND = 0xc8;
  306. static const Byte IDTB_CONTRACT = 0xc9;
  307. static const Byte IDTB_STOP = 0xca;
  308. static const Byte IDTB_REFRESH = 0xcb;
  309. static const Byte IDTB_BACK = 0xcc;
  310. static const Byte IDTB_HOME = 0xcd;
  311. static const Byte IDTB_SYNC = 0xce;
  312. static const Byte IDTB_PRINT = 0xcf;
  313. static const Byte IDTB_OPTIONS = 0xd0;
  314. static const Byte IDTB_FORWARD = 0xd1;
  315. static const Byte IDTB_NOTES = 0xd2;
  316. static const Byte IDTB_BROWSE_FWD = 0xd3;
  317. static const Byte IDTB_BROWSE_BACK = 0xd4;
  318. static const Byte IDTB_CONTENTS = 0xd5;
  319. static const Byte IDTB_INDEX = 0xd6;
  320. static const Byte IDTB_SEARCH = 0xd7;
  321. static const Byte IDTB_HISTORY = 0xd8;
  322. static const Byte IDTB_FAVORITES = 0xd9;
  323. static const Byte IDTB_JUMP1 = 0xda;
  324. static const Byte IDTB_JUMP2 = 0xdb;
  325. static const Byte IDTB_CUSTOMIZE = 0xdd;
  326. static const Byte IDTB_ZOOM = 0xde;
  327. static const Byte IDTB_TOC_NEXT = 0xdf;
  328. static const Byte IDTB_TOC_PREV = 0xe0;
  329. static const short HHN_FIRST = 0xfffffca4;
  330. static const short HHN_LAST = 0xfffffc91;
  331. static const short HHN_NAVCOMPLETE = 0xfffffca4;
  332. static const short HHN_TRACK = 0xfffffca3;
  333. static const short HHN_WINDOW_CREATE = 0xfffffca2;
  334. static const Shortint HHWIN_NAVTYPE_TOC = 0x0;
  335. static const Shortint HHWIN_NAVTYPE_INDEX = 0x1;
  336. static const Shortint HHWIN_NAVTYPE_SEARCH = 0x2;
  337. static const Shortint HHWIN_NAVTYPE_FAVORITES = 0x3;
  338. static const Shortint HHWIN_NAVTYPE_HISTORY = 0x4;
  339. static const Shortint HHWIN_NAVTYPE_AUTHOR = 0x5;
  340. static const Shortint HHWIN_NAVTYPE_CUSTOM_FIRST = 0xb;
  341. static const Shortint IT_INCLUSIVE = 0x0;
  342. static const Shortint IT_EXCLUSIVE = 0x1;
  343. static const Shortint IT_HIDDEN = 0x2;
  344. static const Shortint HHWIN_NAVTAB_TOP = 0x0;
  345. static const Shortint HHWIN_NAVTAB_LEFT = 0x1;
  346. static const Shortint HHWIN_NAVTAB_BOTTOM = 0x2;
  347. static const Shortint HH_MAX_TABS = 0x13;
  348. static const Shortint HH_TAB_CONTENTS = 0x0;
  349. static const Shortint HH_TAB_INDEX = 0x1;
  350. static const Shortint HH_TAB_SEARCH = 0x2;
  351. static const Shortint HH_TAB_FAVORITES = 0x3;
  352. static const Shortint HH_TAB_HISTORY = 0x4;
  353. static const Shortint HH_TAB_AUTHOR = 0x5;
  354. static const Shortint HH_TAB_CUSTOM_FIRST = 0xb;
  355. static const Shortint HH_TAB_CUSTOM_LAST = 0x13;
  356. static const Shortint HH_MAX_TABS_CUSTOM = 0x9;
  357. static const Shortint HH_FTS_DEFAULT_PROXIMITY = 0xffffffff;
  358. static const Shortint HHACT_TAB_CONTENTS = 0x0;
  359. static const Shortint HHACT_TAB_INDEX = 0x1;
  360. static const Shortint HHACT_TAB_SEARCH = 0x2;
  361. static const Shortint HHACT_TAB_HISTORY = 0x3;
  362. static const Shortint HHACT_TAB_FAVORITES = 0x4;
  363. static const Shortint HHACT_EXPAND = 0x5;
  364. static const Shortint HHACT_CONTRACT = 0x6;
  365. static const Shortint HHACT_BACK = 0x7;
  366. static const Shortint HHACT_FORWARD = 0x8;
  367. static const Shortint HHACT_STOP = 0x9;
  368. static const Shortint HHACT_REFRESH = 0xa;
  369. static const Shortint HHACT_HOME = 0xb;
  370. static const Shortint HHACT_SYNC = 0xc;
  371. static const Shortint HHACT_OPTIONS = 0xd;
  372. static const Shortint HHACT_PRINT = 0xe;
  373. static const Shortint HHACT_HIGHLIGHT = 0xf;
  374. static const Shortint HHACT_CUSTOMIZE = 0x10;
  375. static const Shortint HHACT_JUMP1 = 0x11;
  376. static const Shortint HHACT_JUMP2 = 0x12;
  377. static const Shortint HHACT_ZOOM = 0x13;
  378. static const Shortint HHACT_TOC_NEXT = 0x14;
  379. static const Shortint HHACT_TOC_PREV = 0x15;
  380. static const Shortint HHACT_NOTES = 0x16;
  381. static const Shortint HHACT_LAST_ENUM = 0x17;
  382. static const Shortint HH_GPROPID_SINGLETHREAD = 0x1;
  383. static const Shortint HH_GPROPID_TOOLBAR_MARGIN = 0x2;
  384. static const Shortint HH_GPROPID_UI_LANGUAGE = 0x3;
  385. static const Shortint HH_GPROPID_CURRENT_SUBSET = 0x4;
  386. static const Shortint HH_GPROPID_CONTENT_LANGUAGE = 0x5;
  387. extern PACKAGE AnsiString __fastcall GetPathToHHCtrlOCX();
  388. extern PACKAGE void __fastcall LoadHtmlHelp(void);
  389. extern PACKAGE void __fastcall UnloadHtmlHelp(void);
  390. } /* namespace Hh */
  391. using namespace Hh;
  392. #pragma option pop // -w-
  393. #pragma option pop // -Vx
  394. #pragma delphiheader end.
  395. //-- end unit ----------------------------------------------------------------
  396. #endif // hh