unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var m: TMsgBoxParams;
h: THelpInfo;
procedure CallBk(var hh: THelpInfo);
begin
Application.HelpJump('TongMIS');
end;
begin
Application.HelpFile:='C:/Documents and Settings/Administrator/My do
cuments/新建文件夹/TONGMIS.HLP';
// h.iContextType:=HELPINFO_MENUITEM;
// h.iCtrlId:=101;
h.hItemHandle:=Handle;
// h.dwContextId:=101;
h.cbSize:=SizeOf(h);
m.hwndOwner:=Handle;
m.lpszText:='Displaied String!';
m.lpszCaption:='Cap';
m.hInstance:=HInstance;
m.dwStyle:=MB_USERICON + MB_YESNO + MB_HELP;
m.lpszIcon:='1';
m.dwContextHelpId:=101;
m.lpfnMsgBoxCallback:=@CallBk;
m.dwLanguageId:=$0804;
m.cbSize:=Sizeof(m);
MessageBoxIndirect(m);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
FlashWindow(Application.Handle, True)
end;
end.