]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/framecmn.cpp
don't generate duplicate resume events for PBT_APMRESUMEAUTOMATIC
[wxWidgets.git] / src / common / framecmn.cpp
index 38ad2f2c38049a072983ee15d0c245ffbd7c50c8..c1a25b5a8ee44efa7818e9e9224d5f78878e5e93 100644 (file)
@@ -211,8 +211,7 @@ bool wxFrameBase::ProcessCommand(int id)
         }
     }
 
-    GetEventHandler()->ProcessEvent(commandEvent);
-    return true;
+    return HandleWindowEvent(commandEvent);
 #else // !wxUSE_MENUS
     wxUnusedVar(id);
 
@@ -439,7 +438,7 @@ void wxFrameBase::DoGiveHelp(const wxString& help, bool show)
 
     statbar->SetStatusText(text, m_statusBarPane);
 #else
-    wxUnusedVar(text);
+    wxUnusedVar(help);
     wxUnusedVar(show);
 #endif // wxUSE_STATUSBAR
 }