Re: HTML Help



"Alexander Halser" <alexander.REMOVETHIS.halser@xxxxxxx> schreef in bericht
news:45645e19$0$2617$91cee783@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The HtmlHelp function returns the window handle of the help window. Have
you
tried to modify this window manually and make it the top-most window?

var
h: THandle;
begin
h := HtmlHelp(TrainingCardHandle, pchar(myhelpfile +
'::/mytopic.html'),
HH_DISPLAY_TOPIC, 0);
if h <> 0 then SetWindowPos(h, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or
SWP_NOSIZE or SWP_NOREDRAW );
end;


Replacing TrainingCardHandle by 0 results in what I had in mind regarding
the staying on top. The help window always gets the focus when you click in
it and it always stays on top.

But calling it with TrainingCardHandle assigned to
AllocateHwnd(trainingCardProc) - needed for the training card messages -
leads to a problem I had not noticed before: when you close the help window,
the main form does not get the focus back. You can still move the main form,
but it will not get input focus. Somehow it stays locked in the
trainingCardProc.

Any further ideas? (I feel I'm almost there !)
Tom


.



Relevant Pages

  • Re: this.window.focus() vs. window.focus() vs. this.focus()
    ... When used in-line in the body tag, 'this' refers to the body element. ... the body element doesn't have a window property; ... This will attempt to call the focus method of the body element. ... Since I am using named windows to avoid users opening multiple copies of the same popup help window, some means of giving focus to an old copy of the help window is necessary, else the user will click the help link and nothing appears to happen. ...
    (comp.lang.javascript)
  • Re: Change owner of Help window
    ... If the help window is launched from one window, ... help window for the latest open form when the user presses F1? ... As for changing the window parent, the Win32 function SetParent() will do   ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: red x instead of picture in Windows XP Help and Support window
    ... The Help and Support window works through the browser. ... Multimedia section and make sure that the Show Pictures option is checked. ... Scroll down to this section: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: practice files for word 2002
    ... the instructions window wasn't opening. ... > only window open was the dot file. ... It says in the help window about ... > the "Learn More" link to download a copy of Offfice 2003, ...
    (microsoft.public.office.misc)
  • Re: [PATCH] ncurses based config V2
    ... Fixed segfaults in help window. ... Removed the instructions window, made the instructions appear as a button ... Added hot keys support. ...
    (Linux-Kernel)