I've created a help project in MS Help Workshop 4.whatever. It runs fine from the VB program, but I want to change the default size of the main help window. I added a window - main, and set the size properties. It shows up in the same position and size, regardless of the values I enter.
This is the first help file I've ever created, so I followed VB Black Book instructions for embedding the help project. The code below is what I'm using in VB. Any help or direction would be greatly appreciated.
Cathy
Dim retVal As Long
Const HELP_CONTEXT = &H1
Const HELP_QUIT = &H2
Const HELP_INDEX = &H3
Const HELP_CONTENTS = &H3&
Const HELP_HELPONHELP = &H4
Const HELP_SETINDEX = &H5
Const HELPSETCONTENTS = &H5&
Const HELP_FORCEFILE = &H9&
Const HELP_KEY = &H101
Const HELP_COMMAND = &H102&
Const HELP_PARTIALKEY = &H105&
Const HELP_MULTIKEY = &H201&
Const HELP_SETWINPOS = &H103&
Const HELP_SETSIZE = &H100&
Private Declare Function WinHelp Lib "user32" Alias "WinHelpA" _
(ByVal hwnd As Long, ByVal Apollo As String, ByVal wCommand As Long, _
ByVal dwData As Long) As Long
retVal = WinHelp(frmApollo.hwnd, "c:\Apollo.hlp", HELP_INDEX, CLng(0))
This is the first help file I've ever created, so I followed VB Black Book instructions for embedding the help project. The code below is what I'm using in VB. Any help or direction would be greatly appreciated.
Cathy
Dim retVal As Long
Const HELP_CONTEXT = &H1
Const HELP_QUIT = &H2
Const HELP_INDEX = &H3
Const HELP_CONTENTS = &H3&
Const HELP_HELPONHELP = &H4
Const HELP_SETINDEX = &H5
Const HELPSETCONTENTS = &H5&
Const HELP_FORCEFILE = &H9&
Const HELP_KEY = &H101
Const HELP_COMMAND = &H102&
Const HELP_PARTIALKEY = &H105&
Const HELP_MULTIKEY = &H201&
Const HELP_SETWINPOS = &H103&
Const HELP_SETSIZE = &H100&
Private Declare Function WinHelp Lib "user32" Alias "WinHelpA" _
(ByVal hwnd As Long, ByVal Apollo As String, ByVal wCommand As Long, _
ByVal dwData As Long) As Long
retVal = WinHelp(frmApollo.hwnd, "c:\Apollo.hlp", HELP_INDEX, CLng(0))