如何定位到.chm文件中的某相关页?

pbsql 2003-03-10 10:25:14
大家知道,用run("hh help.chm")这种形式可以调用.chm文件,现有两问题:
1.因为我在程序中很多地方使用该文件,不同地方应打开该文件不同的页,那么在程序中如何自动定位到.chm文件中的某页呢?
2.当该.chm已打开时,如果再调用则直接使用该打开的窗口而不是另开窗口打开该.chm文件,这样该如实现?

谢谢!
...全文
236 35 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
35 条回复
切换为时间正序
请发表友善的回复…
发表回复
kowloons 2003-04-16
  • 打赏
  • 举报
回复
这样应该能能满足你的两个要求:

showhelp('help.chm',Keyword!, "所要定向的关键字")//在做CHM文件时已做好定向处理
bomber2001 2003-04-14
  • 打赏
  • 举报
回复
sc
axuion 2003-04-14
  • 打赏
  • 举报
回复
制作.chm文件格式的工具有好多的,可能每个有点区别吧. 不妨楼主 找几个 简单点的工具,再用上面的朋友的方案,相信一定能够解决的!
online 2003-04-12
  • 打赏
  • 举报
回复
学习一下
online 2003-04-12
  • 打赏
  • 举报
回复
学习,收藏
xirumin 2003-04-07
  • 打赏
  • 举报
回复
学习一下
xirumin 2003-04-07
  • 打赏
  • 举报
回复
学习一下
ze_ 2003-04-05
  • 打赏
  • 举报
回复
学习,收藏
sigh02 2003-03-22
  • 打赏
  • 举报
回复
msdn里面的定义是:
HWND HtmlHelp(HWND hwndCaller, LPCSTR pszFile, UINT uCommand, DWORD dwData);
给的例子是:
HtmlHelp(NULL, "My_chm.chm::/A_topic.htm", HH_DISPLAY_TOPIC, 0);
这里各位的
HtmlHelpA(handle(THIS),"Project.chm",HH_DISPLAY_TOPIC,"1_4.htm")
HtmlHelpA(handle(this),"chm_name>chm_win_name",0,"htm_name")
是什么意思?能解释一下吗?
sigh02 2003-03-22
  • 打赏
  • 举报
回复
定位不到.htm啊!?
dotnba 2003-03-18
  • 打赏
  • 举报
回复
学习,收藏
am2000 2003-03-17
  • 打赏
  • 举报
回复
HtmlHelpA(handle(THIS),"Project.chm",HH_DISPLAY_TOPIC,"1_4.htm")
yannankai 2003-03-17
  • 打赏
  • 举报
回复
在PB8可以的
ShowPopupHelp ( "你好呀,可以试试这个的效果", this, 110)
pbsql 2003-03-17
  • 打赏
  • 举报
回复
xavier_lee(我自横刀哈哈笑!):谢谢,网址?
xavier_lee 2003-03-17
  • 打赏
  • 举报
回复
HTML HELP WORKSHOP 4.74
微软免费下载!!
msf 2003-03-17
  • 打赏
  • 举报
回复
up
pbsql 2003-03-17
  • 打赏
  • 举报
回复
am2000(最后一滴水):HtmlHelpA(handle(THIS),"Project.chm",HH_DISPLAY_TOPIC,"1_4.htm")

HH_DISPLAY_TOPIC定义为什么类型?
am2000 2003-03-17
  • 打赏
  • 举报
回复
Using the WinHelp
API
Declaring and using the WinHelp API allows access to the full range of
WinHelp functions, many of which are not available in ShowHelp. For
example, using the WinHelp function you can easily specify a window type or
window name in which to present a Help topic.
To declare the WinHelp API as an external function:
1 Select Declare>Global External Functions from the menu bar of any
painter that accesses the Script view.
2 Enter the function declaration in the textbox and click OK.
This example declares the WinHelp API:
FUNCTION boolean WinHelpA(long hWndMain, &
string lpszHelp, long uCommand, &
long dwData) &
LIBRARY "USER32.DLL"
For more information about the WinHelp API, see the online Help for the
Microsoft Help Workshop or the documentation for your Help authoring tool.
For more information about declaring and using global external functions, see
the PowerScript Reference and "Using external functions" on page 378.
am2000 2003-03-17
  • 打赏
  • 举报
回复
ShowHelp is simpler to implement than the WinHelp API. You can use the
ShowHelp PowerScript function to search for Help topics by Help context ID,
by keyword, and by accessing the Help file Contents topic (the topic defined in
the project file as the Help Contents topic). ShowHelp can also be used with
compiled HTML (.chm) files.
pbsql 2003-03-14
  • 打赏
  • 举报
回复
?
加载更多回复(15)

1,108

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧