怎么调用这样格式的帮助文件?(100分)

  • 主题发起人 主题发起人 阿朱
  • 开始时间 开始时间

阿朱

Unregistered / Unconfirmed
GUEST, unregistred user!
我用微软的HTMLWORK软件做了一个.chm的帮助文件,WINDOWS98中流行的帮助<br>文件的格式,但不知如何调用?看它的帮助文档说,有一个API可调用,在它附带的HHCTRIL.OCX中,我在DELPHI中顺利安装,往FORM上拖的时候却提示:<br>不支持此界面,它说的那个API是:HTMLHELP(HWND,FILEPATH,COMMAND,DATA):HWND;我打开它的类型库没发现这个API,怎么办?<br>请各位大侠帮助,小弟就剩150分了,忍痛赠100分,苦哇......
 
hehe,赶紧抢,到www.delphi-jedi.org的api libary里去down一个htmlhelp<br>的声明文件,还带例子呐,很酷的说.哈哈,都别跟我抢
 
Hubdog,不跟你抢,我作候补,如果Hubdog的不行,找我吧,也是声明文件,还带例子呐. &nbsp; Hehe.....
 
试试用 winhelp 打开,
 
接受答案了.
 
hubdog 请教你一个问题,我到www.delphi-jedi.org的api libary里去down的htmlhelp<br>中带有一个demo是按F1键提示帮助信息。可是仿制这个demo的样子做了一个,F1跟本不管用,<br>并且<br>function TForm1.ApplicationOnHelp(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean;<br>const<br>&nbsp; // A static local variable to remember the mouse pos<br>&nbsp; Pos: TPoint = (X:0; Y:0);<br>begin<br>&nbsp; // Instruct Delphi not to call WinHelp<br>&nbsp; CallHelp := False;<br>&nbsp; // Assume we can succeed<br>&nbsp; Result := True;<br>&nbsp; case Command of<br>&nbsp; &nbsp; // Remember the position of the mouse when help was requested[red]<br>&nbsp; &nbsp; HELP_SETPOPUP_POS: Pos := SmallPointToPoint(TSmallPoint(Data)); &nbsp;[/red]//此处根本通不过<br>&nbsp; &nbsp; // This is our chance to show help. The Data parameter is the helpcontext<br>&nbsp; &nbsp; // property of the control beneath the mouse cursor when help was requested,<br>&nbsp; &nbsp; // either through F1 or What's This Help.<br>&nbsp; &nbsp; HELP_CONTEXTPOPUP: ShowHelp(Pos, Data);<br>&nbsp; &nbsp; else Result := False;<br>&nbsp; end;<br>end;<br>请问我要如何来触发调用F1键来显示top式的帮助。<br>
 
后退
顶部