But when the code calls the API seems can't find HH_HELP_CONTEXT command in PB, can only use 0, the alias files I wrote is useless, unless I don't want to indexing, indexing
Master relief to all of you!
CodePudding user response:
Actually do you want to achieve specific pages to help the most simple way is to call PB built-in functions:Showhelp (* * *. CHM, keyword! , ' help page title: ')
But the premise is to each page title index, to do so than calling the API is simple, and you can put the above function on ancestors window button or event, behind the title of the help page can be set to an instance variable, then in each actual window assignment,
CodePudding user response:
So although feasible, but to make CHM demand is high, large amount of HTM page to page after page of naming, than any other software to automatically generate CHM, oneself write a mapping file fast,CodePudding user response:
Have to solve, thank you!DwData share experience: HH_HELP_CONTEXT is used to define parameters for long, if use HH_DISPLAY_TOPIC dwData defined parameters as string,
Example:
Use HH_HELP_CONTEXT Function is as follows: the definition of the Function Long HtmlHelpA (Long HWND, string lpHelpFile, Long wCommand, Long dwData) Library "HHCTRL. Ocx" alias for "HtmlHelpA; Ansi
"HH_HELP_CONTEXT=15
On the window corresponding event code:
HtmlHelpA (handle (window), file path + name of the file, HH_HELP_CONTEXT, long (alias) of the mapping file)
Use HH_DISPLAY_TOPIC Function is as follows: the definition of the Function Long HtmlHelpA (Long HWND, string lpHelpFile, Long wCommand, string dwData) Library "HHCTRL. Ocx" alias for "HtmlHelpA; Ansi
"HH_DISPLAY_TOPIC=0 on the window corresponding event code:
HtmlHelpA (handle (window), file path + name of the file, HH_DISPLAY_TOPIC, a paging. HTM)
The above two methods are opened the CHM file specified page, personally think that the first practical,