mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:01:49 +02:00
delete menuitem when destroying it from Martin Smat
git-svn-id: trunk@9022 -
This commit is contained in:
parent
49646f2597
commit
a2f388d27b
@ -284,6 +284,8 @@ end;
|
|||||||
|
|
||||||
procedure TWin32WSMenuItem.DestroyHandle(const AMenuItem: TMenuItem);
|
procedure TWin32WSMenuItem.DestroyHandle(const AMenuItem: TMenuItem);
|
||||||
begin
|
begin
|
||||||
|
if Assigned(AMenuItem.Parent) then
|
||||||
|
DeleteMenu(AMenuItem.Parent.Handle, AMenuItem.Command, MF_BYCOMMAND);
|
||||||
DestroyMenu(AMenuItem.Handle);
|
DestroyMenu(AMenuItem.Handle);
|
||||||
TriggerFormUpdate(AMenuItem);
|
TriggerFormUpdate(AMenuItem);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user