5,939
社区成员
发帖
与我相关
我的任务
分享
type
TForm1 = class(TForm)
private
procedure WMSysCommand(var msg:TWMSysCommand);message WM_Syscommand;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
procedure TForm1.WMSysCommand(var msg:TWMSysCommand);
begin
if (msg.CmdType and $FFF0 = SC_MINIMIZE) then
Close
else
inherited;
end;
end.