uses dwmapi,

  if ( @DwmEnableComposition <> nil ) then
  begin
   DwmEnableComposition(0);
  end;
