?? chmessageutils.pas
字號:
unit CHMessageUtils;
interface
uses Forms, Controls, SysUtils, Classes, Windows;
procedure ErrorMsg(msg: string; title: string='錯誤'; Flags: Longint=MB_OK or MB_ICONERROR);
procedure InfoMsg(msg: string; title: string='信息'; Flags: Longint=MB_OK or MB_ICONINFORMATION);
function YesnoMsg(msg: string; title: string='選擇'; Flags: Longint=MB_YESNO or MB_ICONQUESTION): Integer;
implementation
procedure ErrorMsg(msg: string; title: string; Flags: Longint);
begin
Application.MessageBox(PChar(msg), PChar(title), Flags);
end;
procedure InfoMsg(msg: string; title: string; Flags: Longint);
begin
Application.MessageBox(PChar(msg), PChar(title), Flags);
end;
function YesnoMsg(msg: string; title: string; Flags: Longint): Integer;
begin
Result := Application.MessageBox(PChar(msg), PChar(title), Flags);
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -