CHM Files
CHM Files
Winhelp does not work with CHM files, but HtmlHelp does. The
following are constants used by HtmlHelp to display parts of a CHM file:
Const
HH_DISPLAY_TOPIC = &H0
Const HH_SET_WIN_TYPE
= &H4
Const HH_GET_WIN_TYPE
= &H5
Const
HH_GET_WIN_HANDLE = &H6
Const
HH_DISPLAY_TEXT_POPUP = &HE ' Display string
resource ID or text in a pop-up window.
Const HH_HELP_CONTEXT
= &HF ' Display mapped
numeric value in dwData.
Const
HH_TP_HELP_CONTEXTMENU = &H10 ' Text pop-up help, similar to WinHelp's
HELP_CONTEXTMENU.
Const
HH_TP_HELP_WM_HELP = &H11 ' text pop-up
help, similar to WinHelp's HELP_WM_HELP.
Const HH_CLOSE_ALL =
&H12
Private Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, ByVal pszFile As String, ByVal uCommand As Long, ByVal dwData As Long) As Long
See example code for how this works.
|