VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Calling HTML Help (.CHM) files from within VB applications. ** Updated 30/12/02 **

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

Calling HTML Help (.CHM) files from within VB applications. ** Updated 30/12/02 **

API Declarations


'Purpose :- Call HTML Help from within a Visual Basic Program.
'Version :- 1.01.1001
'Object :- HTML_Help (Module)


'Function call provided...
'HelpMe(ProgWindow,HelpFile,[ContextID]) : Displays either help index or context sensitive help.

'Two parameters required, one optional...
'ProgWindow : Your Program's Window Handle.
'HelpFile : Filespec of the .CHM file to display.
'[ContextID] : If passed will open context help at that topic.

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.

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


Rate Calling HTML Help (.CHM) files from within VB applications. ** Updated 30/12/02 ** (2(2 Vote))
Calling HTML Help (.CHM) files from within VB applications. ** Updated 30/12/02 **.bas

Calling HTML Help (.CHM) files from within VB applications. ** Updated 30/12/02 ** Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters