procedure TfrmTopJdsMain.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
  if MessageDlg('您好,关闭此插件,将导致【订单全链路】不能正常使用!请确认是否关闭?',mtConfirmation,[mbYes,mbNo],0) = mrNo then
  begin
    CanClose := False;
  end;
end;

这样窗口在关闭的时候  如果点击了否  就可以不关闭了

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-12-23
  • 2021-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案