procedure TForm1.WMNCRButtonDown(var Msg: TWMNCRButtonDown); begin
if (Msg.HitTest = HTCAPTION) then
if (ClientHeight = 0) then
begin ClientHeight := FOldHeight;
Application.ProcessMessages; end
else
begin FOldHeight := ClientHeight;
ClientHeight := 0;
Application.ProcessMessages; end
end;