]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/framecmn.cpp
another attempt to fix strconv.cpp compilation
[wxWidgets.git] / src / common / framecmn.cpp
index b69ca51332c985e75918d6dddff501a1e426cab2..5782c231eff4c8304a89d89d41ff6f1af5707dd5 100644 (file)
@@ -290,6 +290,14 @@ void wxFrameBase::OnMenuHighlight(wxMenuEvent& event)
 #endif // wxUSE_STATUSBAR
 }
 
+bool wxFrameBase::SendIconizeEvent(bool iconized)
+{
+    wxIconizeEvent event(GetId(), iconized);
+    event.SetEventObject(this);
+
+    return GetEventHandler()->ProcessEvent(event);
+}
+
 // ----------------------------------------------------------------------------
 // status bar stuff
 // ----------------------------------------------------------------------------
@@ -427,8 +435,11 @@ void wxFrameBase::DoMenuUpdates()
 {
     wxMenuBar* bar = GetMenuBar();
 
+#ifdef __WXMSW__
     wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
-
+#else
+    wxWindow* focusWin = (wxWindow*) NULL;
+#endif
     if ( bar != NULL )
     {
         int nCount = bar->GetMenuCount();