Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Sizing the "main" Window in Help Workshop

Status
Not open for further replies.

caconner

Technical User
May 20, 2002
42
US
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))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top