本文整理自网络,侵删。
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 解决strtodatetime()不是有效日期类型的问题
Delphi 新增功能之: ioutils 单元(7): tfile 结构的功能
更多相关阅读请进入《Delphi》频道 >>