From 4f0a1b07e68d8a8964ac94e5cd596438ff6663de Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 23 Apr 2000 14:26:06 +0000 Subject: [PATCH] Changed MM_DELETEITEM to MM_REMOVEITEM so reinserting is possible. This possibly created a memory leak? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index d770d8f997..ccb2c50368 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -836,7 +836,7 @@ wxMenu* wxMenuBar::Replace( m_titles[nPos] = Title; if (IsAttached()) { - ::WinSendMsg((HWND)m_hMenu, MM_DELETEITEM, MPFROM2SHORT(nId, TRUE), (MPARAM)0); + ::WinSendMsg((HWND)m_hMenu, MM_REMOVEITEM, MPFROM2SHORT(nId, TRUE), (MPARAM)0); ::WinSendMsg((HWND)m_hMenu, MM_INSERTITEM, (MPARAM)&pMenu->m_vMenuData, (MPARAM)Title.c_str()); #if wxUSE_ACCEL @@ -939,7 +939,7 @@ wxMenu* wxMenuBar::Remove( } if (IsAttached()) { - ::WinSendMsg((HWND)GetHmenu(), MM_DELETEITEM, MPFROM2SHORT(nId, TRUE), (MPARAM)0); + ::WinSendMsg((HWND)GetHmenu(), MM_REMOVEITEM, MPFROM2SHORT(nId, TRUE), (MPARAM)0); pMenu->Detach(); #if wxUSE_ACCEL