抄来一段
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type
TForm1 = class(TForm)
procedure FormClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
function MessageBoxLg(Handle:integer;Text,Caption:String;flag:integer):integer;
end;var
Form1: TForm1;implementation{$R *.DFM}{ TForm1 }function TForm1.MessageBoxLg(Handle: integer; Text, Caption: String;
flag: integer): integer;
var
Msg:TMsgBoxParams;
begin Msg.cbSize:=SizeOf(Msg);
Msg.hwndOwner:=Handle;
Msg.hInstance:=hinstance;
Msg.lpszText:=PChar(Text);
Msg.lpszCaption:=PChar(Caption);
Msg.dwStyle:=flag+MB_USERICON;
Msg.lpszIcon:='MAINICON';
Msg.dwContextHelpId:=1;
Msg.lpfnMsgBoxCallback:=nil;
Msg.dwLanguageId:=LANG_NEUTRAL; Result:=Integer(MessageBoxIndirect(Msg));end;procedure TForm1.FormClick(Sender: TObject);
begin
MessageBoxLg(Handle,'登陆成功 ','登陆对话框', 0);
end;end.
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type
TForm1 = class(TForm)
procedure FormClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
function MessageBoxLg(Handle:integer;Text,Caption:String;flag:integer):integer;
end;var
Form1: TForm1;implementation{$R *.DFM}{ TForm1 }function TForm1.MessageBoxLg(Handle: integer; Text, Caption: String;
flag: integer): integer;
var
Msg:TMsgBoxParams;
begin Msg.cbSize:=SizeOf(Msg);
Msg.hwndOwner:=Handle;
Msg.hInstance:=hinstance;
Msg.lpszText:=PChar(Text);
Msg.lpszCaption:=PChar(Caption);
Msg.dwStyle:=flag+MB_USERICON;
Msg.lpszIcon:='MAINICON';
Msg.dwContextHelpId:=1;
Msg.lpfnMsgBoxCallback:=nil;
Msg.dwLanguageId:=LANG_NEUTRAL; Result:=Integer(MessageBoxIndirect(Msg));end;procedure TForm1.FormClick(Sender: TObject);
begin
MessageBoxLg(Handle,'登陆成功 ','登陆对话框', 0);
end;end.
解决方案 »
- delphi7学习书籍
- 有需要药品批发管理系统和连锁大卖场管理系统源代码的吗?友情赠送
- 怎样把两个动态数组中的元素合并到一个动态数组中?
- 一个关于delphi的QQ群组!欢迎大家加入!!
- 很菜的问题:如何制作和DBNavigator相同功能的按纽啊?
- 如何编写没有窗体的却能常住内存的程序?
- 怎样通过DBNavigator实现对DBGrid 中的记录末添加记录?
- 不知道能不能实现.300分
- 在ms sql做了视图,但不知道视图的instead of 触发器在那里做
- 聘delphi+sqlServer , 实际工作经验一年以上。学历无要求。年龄无要求。
- 关于ClientSocket与ServerSocket的一个问题
- 怎样判断再三个表中同一字段的数据是否重复??????
这个办法原来在delphi3年代很好用,delphi 4之后据说不灵了,不错推荐你还是看看。
Application.MessageBox()函数没有‘Yes to All’按钮,而偶就一定要用它:)
consts.pas 编译后会生成consts.pdu吗?是dcu吧!
若是dcu的话,把vcl50.bpl包打出来后就不起作用了。
yes 是[Y]
yes to all 全是[A]
.....
你给我qq我告诉你怎么做的!!!!