Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Aug 6, 1997

WEBINAR:

Live

Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js


Date: 1/31/2018 @ 2 p.m. ET

Open Help File Contents

Most programmers want their applications to look like commercial software, so they want to add their own help files. How do you open the contents of a Windows help file in your application? Simply paste in this code, which uses Win32 API function:
 
' ---- Declares
Const HELP_CONTENTS = &H3&
' Display contents
Declare Function WinHelp Lib "user32" _
        Alias "WinHelpA" _
        (ByVal hwnd As Long, _
        ByVal lpHelpFile As String, _
        ByVal wCommand As Long, _
        ByVal dwData As Long) As Long

' --- Code
Sub OpenHelpFile(HelpFileName As String)
        ' HelpFileName is the path of the 
        ' help file.
        WinHelp hwnd, HelpFileName, _
                HELP_CONTENTS, 0
End Sub
Huang Xiongbai
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date