⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iarotatetimer.pas

📁 大家看看就明白了
💻 PAS
字号:
unit IARotateTimer;

interface

uses
  Windows,Classes,Forms,Controls;

const
  cm_RotatedOn =cm_Base+105;

type
  TiaRotateTimer = class(TThread)
  private
    { Private declarations }
  protected
    procedure Execute; override;
  public
    Dtime : integer;
    Handle1 : HWND;
  end;

implementation

{ Important: Methods and properties of objects in VCL can only be used in a
  method called using Synchronize, for example,

      Synchronize(UpdateCaption);

  and UpdateCaption could look like,

    procedure TiaRotateTimer.UpdateCaption;
    begin
      Form1.Caption := 'Updated in a thread';
    end; }

{ TiaRotateTimer }

procedure TiaRotateTimer.Execute;
begin
  repeat
    sleep(Dtime);
    sendmessage(Handle1,CM_ROTATEDON,0,0);
  until terminated;
   { Place thread code here }
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -