 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Werner Deyzel Guest
|
Posted: Fri Jul 18, 2003 4:08 pm Post subject: Opening .CHM files |
|
|
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
|
Posted: Thu Jul 24, 2003 8:14 pm Post subject: Re: Opening .CHM files |
|
|
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 |
|
 |
|
|
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
|
|