Added some standard further identifiers to help with WinCE toolbars
Moved wxID_REPLACE to defs.h Can now add tools to WinCE toolbar, if using standard identifiers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -615,7 +615,10 @@ wxMenuBar::~wxMenuBar()
|
||||
{
|
||||
// In Windows CE, the menubar is always associated
|
||||
// with a toolbar, which destroys the menu implicitly.
|
||||
#ifndef __WXWINCE__
|
||||
#ifdef __WXWINCE__
|
||||
if (GetToolBar())
|
||||
GetToolBar()->SetMenuBar(NULL);
|
||||
#else
|
||||
// we should free Windows resources only if Windows doesn't do it for us
|
||||
// which happens if we're attached to a frame
|
||||
if (m_hMenu && !IsAttached())
|
||||
|
Reference in New Issue
Block a user