X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adbc621dcb7ba0590d2990f99585f40782daf4a0..659af826726fea66d2476d3a0ead2fb00e34ad23:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 995bf80b19..ae37a7fbd8 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -205,6 +205,9 @@ bool wxFrameBase::ProcessCommand(int id) if (!item->IsEnabled()) return true; + if ((item->GetKind() == wxITEM_RADIO) && item->IsChecked() ) + return true; + if (item->IsCheckable()) { item->Toggle(); @@ -489,9 +492,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)