USEGEAR

导航

对话框延时自动关闭

procedure TfrmRKD_SMP_THREE.tmr1Timer(Sender: TObject);
var
   Hwnd: THandle;
begin
  Hwnd := FindWindow(nil, '提示');
  if Hwnd <> 0 then  SendMessage(Hwnd, WM_CLOSE, 0, 0);
  tmr1.Enabled:=False;
end;

 

posted on 2019-12-23 13:59  USEGEAR  阅读(287)  评论(0编辑  收藏  举报