Examples
Contents
To call your help system, opening with the contents page (the calls are shown on two lines because of space constraints - enter the calls on one line in your code):
dwData& = 1'Assumes Contents page 1
ReturnValue% = WinHelp(hWnd, "myhelp.hlp", HELP_CONTEXT, ByVal dwData&)
Specific Topic
To call a specific topic in the help file:
dwData& = 58'Specific Topic Context Number
ReturnValue% = WinHelp(hWnd, "myhelp.hlp", HELP_CONTEXT, ByVal dwData&)
Help on Help
To call the help file, provided by Microsoft, that gives the end user help on using help systems:
ReturnValue% = WinHelp(hWnd, "myhelp.hlp", HELP_PARTIALKEY, ByVal dwData&)
Close
To close the help system, before closing the window that requested the help:
ReturnValue% = WinHelp(hWnd, "myhelp.hlp", HELP_QUIT, ByVal dwData&)
See Also
Calling WinHelp()
Calling WinHelp Version 4.0 #define list FuCommand Parameters HELP Context ID Property The HELPINFO Structure The HELPWININFO Structure The MULTIKEYHELP Structure The WM TCard Structure Visual Basic