delete menuitem when destroying it from Martin Smat

git-svn-id: trunk@9022 -
This commit is contained in:
vincents 2006-03-27 07:44:30 +00:00
parent 49646f2597
commit a2f388d27b

View File

@ -284,6 +284,8 @@ end;
procedure TWin32WSMenuItem.DestroyHandle(const AMenuItem: TMenuItem);
begin
if Assigned(AMenuItem.Parent) then
DeleteMenu(AMenuItem.Parent.Handle, AMenuItem.Command, MF_BYCOMMAND);
DestroyMenu(AMenuItem.Handle);
TriggerFormUpdate(AMenuItem);
end;