no message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -750,6 +750,15 @@ wxMenuBar::wxMenuBar(
|
||||
|
||||
wxMenuBar::~wxMenuBar()
|
||||
{
|
||||
//
|
||||
// We should free PM's resources only if PM doesn't do it for us
|
||||
// which happens if we're attached to a frame
|
||||
//
|
||||
if (m_hMenu && !IsAttached())
|
||||
{
|
||||
::WinDestroyWindow((HMENU)m_hMenu);
|
||||
m_hMenu = (WXHMENU)NULL;
|
||||
}
|
||||
} // end of wxMenuBar::~wxMenuBar
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user