VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Calling HTML Help (.CHM) files from within VB applications.

Gareth Lock (DynaByte Software)  (3 Submissions)   OLE/COM/DCOM/Active-X   VB 6.0   Unknown Difficulty   Sat 23rd November 2002   Mon 8th February 2021

Calling HTML Help (.CHM) files from within VB applications.

API Declarations



'Two function calls provided...
'HH_DISPLAY_Click() : Display help in response to a buton or menu click.
'HH_HELP_Click() : Display context sensitive help.

'Two variables required for both calls...
'ProgWindow : Your Program's Window Handle
'HelpFile : Filespec of the .CHM file to display.

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.

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

Rate Calling HTML Help (.CHM) files from within VB applications. (2(2 Vote))
Calling HTML Help (.CHM) files from within VB applications..bas

Calling HTML Help (.CHM) files from within VB applications. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters