var mnu: HMENU;
begin
  mnu := GetSystemMenu(Handle, False);
  EnableMenuItem(mnu,SC_CLOSE,MF_BYCOMMAND+MF_DISABLED+MF_GRAYED);
end;

1、删除“关闭”菜单:
procedure TForm1.FormCreate(Sender: TObject);
var mnu: HMENU;
begin
  mnu := GetSystemMenu(Handle, False);
  DeleteMenu(mnu, SC_CLOSE, MF_BYCOMMAND);
end;

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-01-05
  • 2021-12-18
相关资源
相似解决方案