Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML Help with VFP 5
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00752838
Message ID:
00753099
Views:
17
>I am needing to open a html help .chm file from VFP 5 and 6. I that that I'll have to use API calls to do this, wish I was using 7.0, but that is not an option at this point.
>
>Anyone done this with 5.0?

You can use HtmlHelp API function:
#define HH_DISPLAY_TOPIC 0
#define HH_HELP_CONTEXT 15

Declare integer HtmlHelp in "HHCtrl.ocx" As HtmlHelpI;
   integer hwndCaller, string pszFile, ;
   integer uCommand, integer dwData
Declare integer HtmlHelp in "HHCtrl.ocx" As HtmlHelpS;
   integer hwndCaller, string pszFile, ;
   integer uCommand, String dwData
Declare integer GetDesktopWindow in win32api

* display default topic
HtmlHelpI(GetDesktopWindow(), "MyHelp.chm", HH_DISPLAY_TOPIC, 0)
* display topic by file name
HtmlHelpS(GetDesktopWindow(), "MyHelp.chm", HH_DISPLAY_TOPIC, "page2.htm")
* display topic by context ID
HtmlHelpI(GetDesktopWindow(), "MyHelp.chm", HH_HELP_CONTEXT, ContextID)
KB article Q247241 contains a VFP sample for this function.
Previous
Reply
Map
View

Click here to load this message in the networking platform