HH_SYNCH

Synchronizes the Table of Contents and the topic in the topic pane

Argument Description
hwndCaller Handle of parent or owner window, may be 0/GetDesktopWindow
pszFile HTML Help URL: Compiled help (.chm) file [> Window]
uCommand HH_SYNCH
dwData Topic to which to synchronize

Description:
The HH_SYNCH command locates the topic that is currently visible in the topic pane and selects it in the Table Of Contents. This is similar to what happens when the user selects the Locate toolbar button.

Example:

HtmlHelp(WndHandle, PChar('JediHtmlHelp.chm'), HH_SYNCH, DWORD(PChar('HTML\Resource\Books\Books.htm')));

Notes:
You must specify a window type