[原创] Delphi Win API函数 操作帮助文件 HtmlHelpA函数介绍

Delphi Win API函数 操作帮助文件 HtmlHelpA函数介绍

函数原型:HWND HtmlHelpA( HWND hwndCaller, LPCSTR pszFile, UINT uCommand, DWORD_PTR dwData );

Delphi 中引用:function HtmlHelpA (hwndcaller:Longint; lpHelpFile:string; wCommand:Longint;dwData:string): HWND;stdcall; external 'hhctrl.ocx';   //调用这个 hhctrl.ocx 控件里面的函数,一般windows系统 都有带

 

官方操作示例:

  HtmlHelp( GetDesktopWindow(), "c:\Help.chm::/Intro.htm>Mainwin", HH_DISPLAY_TOPIC, NULL) ;

 

Delphi 实际应用示例:

  HtmlHelpA(Handle, PChar( ExtractFilePath(ParamStr(0))+‘’Help.chm ),0,'主页.htm');

 

注意:HH_DISPLAY_TOPIC 默认 取值为 0

更新日期:2019.12.24

来源:https://www.cnblogs.com/guorongtao/p/12091183.html

原文地址:https://www.cnblogs.com/guorongtao/p/12091183.html