本文整理自网络,侵删。
//显示提示信息XXX 是/否function TBN.ShowMsgYesNo(sMsg:String;sTitle:string='提示'):Boolean;begin Result:=application.MessageBox(pchar(sMsg),pchar(sTitle),MB_ICONWARNING+MB_YESNO)=ID_YES;end;
//显示提示信息procedure TBN.ShowMsg(sMsg:String;sTitle:string='提示');begin application.MessageBox(pchar(sMsg),pchar(sTitle),MB_ICONINFORMATION);end;
//显示报错信息procedure TBN.ShowMsgError(sMsg:String;sTitle:string='提示');begin application.MessageBox(pchar(sMsg),pchar(sTitle),MB_ICONERROR);end;
相关阅读 >>
Delphi如何获取系统服务(即service服务程序)列表
Delphi stringtobase64、base64tostring两个函数
Delphi getmimetypefromfile 获取文件mime类型
更多相关阅读请进入《Delphi》频道 >>