BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Opening .CHM files

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Werner Deyzel
Guest





PostPosted: Fri Jul 18, 2003 4:08 pm    Post subject: Opening .CHM files Reply with quote



All,

How do I open a .CHM help file from within my application (say from a button
click)
I am using C++ Builder 5 Pro

Thanks
Werner


Back to top
chris
Guest





PostPosted: Thu Jul 24, 2003 8:14 pm    Post subject: Re: Opening .CHM files Reply with quote



When the form is loaded:

// Initialize helpfile location
m_asHelpFile = ::ExtractFilePath(ParamStr(0)) + "\your_help_file.chm";
m_asHelpFile = ::ExpandFileName(m_asHelpFile);


When the button is clicked:

AnsiString topic = m_asHelpFile + "::/overview.htm";
HWND H = false? this->Handle: ::GetDesktopWindow();
m_hWindow = ::HtmlHelp(H, topic.c_str(), HH_DISPLAY_TOPIC, 0);

When the application is closed:

::HtmlHelp(0, NULL, HH_CLOSE_ALL, 0);

Chris


"Werner Deyzel" <wdeyzel (AT) yahoo (DOT) com> wrote

Quote:
All,

How do I open a .CHM help file from within my application (say from a button
click)
I am using C++ Builder 5 Pro

Thanks
Werner

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.