]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/framecmn.cpp
fixed compilation in non-Unicode build; fixed bug with buffer overrun in wxMBConvUTF8...
[wxWidgets.git] / src / common / framecmn.cpp
index 995bf80b194e3087a4d181acb4278604817fb49c..6127486170f526268ad04af8b959f0d7db163dd7 100644 (file)
@@ -489,9 +489,15 @@ wxToolBar* wxFrameBase::OnCreateToolBar(long style,
                                         wxWindowID id,
                                         const wxString& name)
 {
+#if defined(__WXWINCE__) && defined(__POCKETPC__)
+    return new wxToolMenuBar(this, id,
+                         wxDefaultPosition, wxDefaultSize,
+                         style, name);
+#else
     return new wxToolBar(this, id,
                          wxDefaultPosition, wxDefaultSize,
                          style, name);
+#endif
 }
 
 void wxFrameBase::SetToolBar(wxToolBar *toolbar)