Re: HTML Help
- From: "Tom de Neef" <tdeneef@xxxxxxxx>
- Date: Wed, 22 Nov 2006 17:30:06 +0100
"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
.
- Follow-Ups:
- Re: HTML Help
- From: Alexander Halser
- Re: HTML Help
- References:
- HTML Help
- From: Tom de Neef
- Re: HTML Help
- From: Alexander Halser
- Re: HTML Help
- From: Tom de Neef
- Re: HTML Help
- From: Alexander Halser
- HTML Help
- Prev by Date: Re: HTML Help
- Next by Date: Re: HTML Help
- Previous by thread: Re: HTML Help
- Next by thread: Re: HTML Help
- Index(es):
Relevant Pages
|