点什么窗体都最小化
private
procedure WMSysCommand(var Msg:TMessage);message WM_SYSCOMMAND;
procedure TFormMain.WMSysCommand(var Msg: TMessage);
begin
case Msg.WParam of
SC_CLOSE,SC_MINIMIZE,SC_MAXIMIZE:
begin
Application.Minimize;
end;
else inherited;
end;
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2008/11/12/2940976.html