X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1729813a8d1b0769eee47fcda2b3b03b4f36e893..4cbcfb73a037462ccf4d54b3e50c58e37cc61aa9:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 017c25578c..f8d43448d5 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -16,10 +16,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "framebase.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -205,6 +201,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(); @@ -276,7 +275,7 @@ void wxFrameBase::OnMenuOpen(wxMenuEvent& WXUNUSED(event)) void wxFrameBase::OnMenuClose(wxMenuEvent& WXUNUSED(event)) { // do we have real status text to restore? - if ( m_oldStatusText.length() > 1 || m_oldStatusText[0u] ) + if ( !m_oldStatusText.empty() ) { if ( m_statusBarPane >= 0 ) { @@ -489,9 +488,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)