How to call the CHM document in the Delphi application

zhaozj2021-02-16  62

In the development of the application, we can use the CHM's help document for better ways to better use this software. So how do you better make CHM documents into your application? The author talks about a simple and convenient method for reference.

In Win9.x's System Directory (or Win2000's System32 Directory) can find hhctrl.ocx files, although this file is ActiveX, but it can also be used as a DLL dynamic link library, but it must be in IE4.0 provide. By analyzing the hhctrl.ocx file, it can be seen that it provides an HTMLHELPA function to call the CHM file.

First, in the Implementation, make the following statement:

Function HTMLHELPA (HWNDCALLER: THANDLE; PAZFILE: STRING;

Ucommand, Dwdata: DWORD: DWORD; stdcall extel 'hhctrl.ocx';

Then you can use it, for example:

Htmlhelpa (Handle, 'C / Winnt / Help / Access.chm', 0, 0);

Very simple, try it, you must join this simple function for your program!

转载请注明原文地址:https://www.9cbs.com/read-24212.html

New Post(0)