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:
Julian Smart
2003-07-18 16:16:14 +00:00
parent 33b3f7c34a
commit bf95a04f16
7 changed files with 133 additions and 55 deletions

View File

@@ -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())