怎么用delphi7 调用easychm 做出的帮助文件
解决方案 »
- BMP 文件的储存格式 我想要把BMP转换成我自己定义的格式
- 求助:如何防止deliph开发的程序运行进程被杀
- !!!!没想到的难题!!!!
- 如何解决ACM传送的延迟问题?
- 关于delphi自动保存工程的问题
- 大家能说一下,vb调用delphi生成的dll要注意什么吗??比如数据类型的转换
- 求助:控件在DBGrid某一标题栏中位置的固定问题---急!!!
- 小弟明天去买关于DELPHI的书。请大哥们介绍几本适合中级用户看的。我以前买的书上的东西都是千篇一律。想看TINIFILE。TREGISTRY等都没有介绍。谢谢。
- 那位大虾说说如何进行Smtp验证,如何判断验证成功与否
- 请问各位高手,如何改变状态栏中的小图标?比如把某个图标改成自己定的?
- 求无文档API库ws2help.dll相关资料
- 新年 and 情人节 is 快乐 调用打印设置对话框?
begin {}
HtmlHelp(handle, 'x:\help\abcd.chm', HH_DISPLAY_TOPIC, DWORD_PTR(PChar('xyz.html')));
end;最后一个参数是打开帮助文件后,直接打开的主题.
我倒是得试试
以前一直为自动打开时候的定位发愁 不知道这样是不是可以
我是直接ShellExecute打开的
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type THH_POPUP=record
cbStruct :integer; // sizeof this structure
hinst :integer; // instance handle for string resource
idString :DWord; // string resource id, or text id if pszFile is specified in HtmlHelp call
pszText :pchar; // used if idString is zero
pt :TPoint; // top center of popup window
clrForeground :integer; // use -1 for default
clrBackground :integer; // use -1 for default
rcMargins :TRect; // amount of space between edges of window and text, -1 for each member to ignore
pszFont :pchar; // facename, point size, char set, BOLD ITALIC UNDERLINE
end;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;const
HH_DISPLAY_TOPIC =0;
HH_DISPLAY_TOC =1;
HH_DISPLAY_INDEX =2;
HH_DISPLAY_SEARCH =3;
HH_DISPLAY_TEXT_POPUP =$E;var
Form1: TForm1;Function htmlhelp (hwnd : integer; lpHelpFile :PChar; wCommand,
dwData :integer):integer; stdcall; external 'hhctrl.ocx' Name 'HtmlHelpA';implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);
var
x:THH_POPUP;
begin
x.cbStruct := sizeof(THH_POPUP);
x.hinst := 0;//Application.Handle;
x.pszFont := 'BOLD';
x.pszText := 'Samples for me';
htmlhelp(Self.Handle, 'help.chm::/3.htm',HH_DISPLAY_TOPIC, 0);
end;假设你的文件名为help.chm,里面包含一个3.htmend.