本文整理自网络,侵删。
//显示提示信息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关闭程序close,application.terminate与halt区别
Delphi xe7 的 android bitmap转jpg图的参数问题
winapi 字符及字符串函数(15): charnext、charprev
更多相关阅读请进入《Delphi》频道 >>