1,用AnimateWindow函数->有一个缺点,窗体位置必须墨认
2,用如下代码
----------------
procedure TForm1.Button1Click(Sender: TObject);

    var

    r:thandle;

    i:integer;

    begin

      for i:=1 to trunc(width/1.414) do

      begin

        r:=CreateEllipticRgn(trunc(width/2)-i,trunc(height/2)-i,trunc(width/2)+i,trunc(height/2)+i);

        SetWindowRgn(handle,r,true);

        Application.ProcessMessages;

        sleep(1);

      end;

    end;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-05-18
  • 2021-10-23
  • 2021-07-28
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-12-07
相关资源
相似解决方案