Author: Tomas Rutkauskas
Is there some sort of component that allows me to show a certain page from a normal
*.hlp file (non HTML) in a form?
Answer:
As far as I know it cannot be done. The closest you can come to it is to take the
standard WinHelp window and parent it to your form via Windows.SetParent. The
WinHelp main window has a classname of 'MS_WINDOC', you can use that with
FindWindow to find its window handle.
1 procedure TForm1.Button1Click(Sender: TObject);
2 var3 wnd: HWND;
4 begin5 wnd := FindWindow('MS_WINDOC', nil);
6 if wnd <> 0 then7 begin8 Windows.SetParent(wnd, handle);
9 Windows.MoveWindow(wnd, 0, 0, clientwidth, clientheight, true);
10 end;
11 end;