本文整理自网络,侵删。
procedure WMSysCommand(var Message: TMessage); message WM_Syscommand ;
procedure TFrm_main.WMSysCommand(var Message: TMessage);
begin
if (Message.WParam = SC_CLOSE) or (Message.WParam = SC_MINIMIZE) then
begin
CoolTrayIcon1.iconvisible:= true;
frm_main.hide;
end
else
inherited;
end;
相关阅读 >>
Delphi tnotification android通知
[译]rad studio 10.4 新变化:面向控件的 vcl 样式管理
Delphi datamodule1 fdconnection1数据库连接
更多相关阅读请进入《Delphi》频道 >>