HtmlHelp reload same file  
Author Message
SCSeaman





PostPosted: Thu Jun 14 10:47:47 CDT 2007 Top

Visual Basic >> HtmlHelp reload same file Hello to all, I have the following problem:

I call for the first time:
Call HtmlHelp(hWnd, "helpITA.chm", HH_HELP_CONTEXT, dwData)
and it appears a window with the Italian Help

then, I call for the second time
Call HtmlHelp(hWnd, "helpENG.chm", HH_HELP_CONTEXT, dwData)
and it appears a window with the same italian help and not english
help.

HtmlHelp seems to not load another file.

Can anyone help me?

thank you
Luca

Visual Studio29  
 
 
MikeD





PostPosted: Thu Jun 14 10:47:47 CDT 2007 Top

Visual Basic >> HtmlHelp reload same file
"Luca" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hello to all, I have the following problem:
>
> I call for the first time:
> Call HtmlHelp(hWnd, "helpITA.chm", HH_HELP_CONTEXT, dwData)
> and it appears a window with the Italian Help
>
> then, I call for the second time
> Call HtmlHelp(hWnd, "helpENG.chm", HH_HELP_CONTEXT, dwData)
> and it appears a window with the same italian help and not english
> help.
>
> HtmlHelp seems to not load another file.
>
> Can anyone help me?


Not sure, but I think there can only be one "primary" help window open per
application at a time. So, just close the first one and then try to open
the second.

Public Const HH_CLOSE_ALL As Long = &H12

Call HtmlHelp(hwnd, vbNullString, HH_CLOSE_ALL, ByVal 0&)

--
Mike
Microsoft Visual Basic MVP


 
 
Luca





PostPosted: Thu Jun 14 11:06:16 CDT 2007 Top

Visual Basic >> HtmlHelp reload same file On 14 Giu, 17:47, "MikeD" <EMail@HideDomain.com> wrote:
> "Luca" <EMail@HideDomain.com> wrote in message
>
> news:EMail@HideDomain.com...
>
> > Hello to all, I have the following problem:
>
> > I call for the first time:
> > Call HtmlHelp(hWnd, "helpITA.chm", HH_HELP_CONTEXT, dwData)
> > and it appears a window with the Italian Help
>
> > then, I call for the second time
> > Call HtmlHelp(hWnd, "helpENG.chm", HH_HELP_CONTEXT, dwData)
> > and it appears a window with the same italian help and not english
> > help.
>
> > HtmlHelp seems to not load another file.
>
> > Can anyone help me?
>
> Not sure, but I think there can only be one "primary" help window open per
> application at a time. So, just close the first one and then try to open
> the second.
>
> Public Const HH_CLOSE_ALL As Long = &H12
>
> Call HtmlHelp(hwnd, vbNullString, HH_CLOSE_ALL, ByVal 0&)
>
> --
> Mike
> Microsoft Visual Basic MVP


Thank you for your reply but do not work properly yet.....
This is the code.

Call HtmlHelp(hWnd, vbNullString, HH_CLOSE_ALL, ByVal 0&)
Call HtmlHelp(hWnd, App.HelpFile, wCommand, dwData)




 
 
Ralph





PostPosted: Thu Jun 14 11:36:01 CDT 2007 Top

Visual Basic >> HtmlHelp reload same file
"Luca" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hello to all, I have the following problem:
>
> I call for the first time:
> Call HtmlHelp(hWnd, "helpITA.chm", HH_HELP_CONTEXT, dwData)
> and it appears a window with the Italian Help
>
> then, I call for the second time
> Call HtmlHelp(hWnd, "helpENG.chm", HH_HELP_CONTEXT, dwData)
> and it appears a window with the same italian help and not english
> help.
>
> HtmlHelp seems to not load another file.
>
> Can anyone help me?
>
> thank you
> Luca
>

help files tend to stick.
Check these out and see if anything helps...
HTML Help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconHH1Start.asp

Information on All Kinds of Help Files:
http://mvps.org/htmlhelpcenter/

HTML Help Module:
http://www.developerfusion.com/show/39/12
Interesting Alternative Tool:
http://www.danish-shareware.dk/soft/shelpm/