Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to display a *.hlp file on a TForm Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
30-Aug-02
Category
VCL-Forms
Language
Delphi All Versions
Views
23
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			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   var
3     wnd: HWND;
4   begin
5     wnd := FindWindow('MS_WINDOC', nil);
6     if wnd <> 0 then
7     begin
8       Windows.SetParent(wnd, handle);
9       Windows.MoveWindow(wnd, 0, 0, clientwidth, clientheight, true);
10    end;
11  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC