Remove frame on a SetMenuBar(NULL)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Unknown (MT)
2000-05-24 23:10:47 +00:00
parent 5272b7f059
commit fbdcfa4c82

View File

@@ -419,6 +419,9 @@ void wxFrame::SetMenuBar(wxMenuBar *menu_bar)
if (!menu_bar)
{
DetachMenuBar();
//actually remove the menu from the frame
m_hMenu=NULL;
InternalSetMenuBar();
return;
}