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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user