private
  procedureWMSysCommand(var Message : TWMSysCommand); message WM_SYSCOMMAND ;procedure TSomeForm.WMSysCommand(var Message : TWMSysCommand) ;
begin
  if Message.CmdType = SC_MINIMIZE then
    application.Minimize;
  inherited ;
end ;