Next Page Site Map Previous Page

Context Sensitive HTMLHelp

Firstly use the latest version of EasyHH which has a EXAMPLES.MAP file in the EXAMPLES\WEBPAGES folder.

If you create a MAP file with the same name as your project EasyHH automatically builds in the mapped context numbers in to your .CHM file. You can then display the HTML Help topic from your programs using the Microsoft API

Here's an example of what a MAP file it looks like:

[ALIAS]

IDH_ABERFORD=ABERFORD.HTM

IDH_ABOUTME=ABOUTME.HTM

IDH_AKERANDY=AKERANDY.HTM

IDH_COMPILED=COMPILED.HTM

[MAP]

#define IDH_ABERFORD 10

#define IDH_ABOUTME 20

#define IDH_AKERANDY 30

#define IDH_COMPILED 60

Here is some sample VB code, you do need to check with Microsoft and your programming manual for full details.

Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _

(ByVal hwndCaller As Long, _

ByVal pszFile As String, _

ByVal uCommand As Long, _

dwData As Any) As Long

Private Const MCST_HH_DISPLAY_TOPIC As Long = &H0

Private Sub btnHelp_Click()

Dim lngRetVal As Long

lngRetVal = HtmlHelp(0, "D:\EasyHH\TestContext\myfirsth.chm", _

MCST_HH_DISPLAY_TOPIC, ByVal "Topic2a.htm")

End Sub


Home Copyright © 1993-2000 Eon Solutions Ltd Email
HTML pages created with EasyHTML/Help for Word