Mega Code Archive

 
Categories / Delphi / System
 

Delete an item from the SystemMenu

Title: delete an item from the SystemMenu? procedure TForm1.Button1Click(Sender: TObject); var Handle: THandle; begin Handle := GetSystemMenu(Self.Handle, False); RemoveMenu(Handle, 1, MF_BYPOSITION); RemoveMenu(Handle, 2, MF_BYPOSITION); end;