ShowHtmlHelp – Show a HTML Help page

Private Declare Function HtmlHelpTopic Lib "hhctrl.ocx" Alias "HtmlHelpA" _    (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, _    ByVal dwData As String) As Long'A HTML Help file is composed by many HTML pages, compiled in one CHM file.'This routine opens the HTML Help browser loading the specified help file and ' showing its specified page.'Example:'   ShowHelp App.Path & "MyHelp.chm", "MyHelp_About.htm"Sub ShowHtmlHelp(ByVal sHelpFile As String, ByVal sHelpPage As String)    Const HH_DISPLAY_TOPIC = &H0    On Error Resume Next    ' open the help page in a modeless window    HtmlHelpTopic 0, sHelpFile, HH_DISPLAY_TOPIC, sHelpPageEnd Sub

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: