unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure WMShowWindow(var Msg: TWMShowWindow); message WM_SHOWWINDOW; procedure WndProc(var msg: TMessage); override; private { Private-Deklarationen } public { Public-Deklarationen } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.WndProc(var msg: TMessage); var bla: Integer; begin if (not (msg.wparam = SC_MINIMIZE)) then inherited; end; procedure TForm1.WMShowWindow(var Msg: TWMShowWindow); begin if not Msg.Show then Msg.Result := 0 else inherited; end; end.