]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
don't do anything before including the PCH header
[wxWidgets.git] / src / common / wincmn.cpp
index 13ccfb0e473255e084b9ab8a4b51c4e80a8d8a3c..307f2c1c640200262486557dbbb17fec493e2ea5 100644 (file)
@@ -2348,9 +2348,9 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event )
         wxMessageBox(msg, _T("wxWidgets information"),
                      wxICON_INFORMATION | wxOK,
                      (wxWindow *)this);
+#endif // wxUSE_MSGDLG
     }
     else
-#endif // wxUSE_MSGDLG
     {
         event.Skip();
     }
@@ -2415,6 +2415,10 @@ wxBorder wxWindowBase::GetBorder(long flags) const
     {
         border = GetDefaultBorder();
     }
+    else if ( border == wxBORDER_THEME )
+    {
+        border = GetDefaultBorderForControl();
+    }
 
     return border;
 }