|
-
September 9th, 1999, 11:50 PM
#1
VB Help on Help
My problem is getting the Contents, Index or Find to display when called from the program. I am using the DLL "Public Declare Function WinHelp Lib "user32" Alias "WinHelpA" (etc. etc.)" and then using the Constants associated with it. The three that are of concern are
Public Const HELP_CONTENTS = &H3&
Public Const HELP_CONTEXT = &H1
Public Const HELP_INDEX = &H3
In the programs Help menu, under Brief Tutorial, for instance, I code
Private Sub mnuTutorial_Click()
HlpReturn = WinHelp(Me.hwnd, HlpFile, &H1, 42)
End Sub
This Sub works fine. It jumps to topic # 42, which is "Brief Tutorial". However, under the programs Help menu, under Contents, I coded the following:
Private Sub mnuContents_Click()
HlpReturn = WinHelp(Me.hwnd, HlpFile, &H3&, 0)
End Sub
This code does not work. It will jump to the default topic in my help file. I have the same problem when I attempt to jump to the Index from my programs menu topics. I have tried everything I can think of with no luck. Where am I going wrong?
Thanks Bob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|