]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menu.cpp
added Show/HideNativeCaret() (patch 759924)
[wxWidgets.git] / src / msw / menu.cpp
index 6bce598d97bcbefbf583ab69716a91fdc89233f4..e8c4c22ce1025cd7fa02c9ebb24ecf49e1d98d47 100644 (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())