]、。·ˉˇ¨〃々—~‖…’”〕〉》」』〗】∶!"'),.:;?]` 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;