]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
Mini-fix for wxStaticBitmap
[wxWidgets.git] / src / msw / app.cpp
index 8b1b21727f3c5947d9ac942876896dcc197433b6..2982fd9716c36225d98ccbd07ea3074120251ae2 100644 (file)
@@ -19,6 +19,7 @@
 
 #ifdef __GNUG__
     #pragma implementation "app.h"
+    #pragma implementation "appbase.h"
 #endif
 
 // For compilers that support precompilation, includes "wx.h".
@@ -708,7 +709,7 @@ int wxEntry(WXHINSTANCE hInstance)
 
 //// Static member initialization
 
-wxAppInitializerFunction wxApp::m_appInitFn = (wxAppInitializerFunction) NULL;
+wxAppInitializerFunction wxAppBase::m_appInitFn = (wxAppInitializerFunction) NULL;
 
 wxApp::wxApp()
 {
@@ -1062,21 +1063,6 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event)
     }
 }
 
-wxLog* wxApp::CreateLogTarget()
-{
-    return new wxLogGui;
-}
-
-wxWindow* wxApp::GetTopWindow() const
-{
-    if (m_topWindow)
-        return m_topWindow;
-    else if (wxTopLevelWindows.GetCount() > 0)
-        return wxTopLevelWindows.GetFirst()->GetData();
-    else
-        return NULL;
-}
-
 int wxApp::GetComCtl32Version() const
 {
     // have we loaded COMCTL32 yet?
@@ -1149,28 +1135,28 @@ bool wxYield()
 
     return TRUE;
 }
+
 wxIcon
 wxApp::GetStdIcon(int which) const
 {
-   switch(which)
-   {
-   case wxICON_INFORMATION:
-      return wxIcon("wxICON_INFO");
-      break;
-   case wxICON_HAND:
-      return wxIcon("wxICON_ERROR");
-      break;
-   case wxICON_QUESTION:
-      return wxIcon("wxICON_QUESTION");
-      break;
-   case wxICON_EXCLAMATION:
-      return wxIcon("wxICON_WARNING");
-      break;
-   default:
-      wxFAIL_MSG("requested non existent standard icon");
-      return wxIcon("wxICON_ERROR");
-      break;
-   }
+    switch(which)
+    {
+        case wxICON_INFORMATION:
+            return wxIcon("wxICON_INFO");
+
+        case wxICON_QUESTION:
+            return wxIcon("wxICON_QUESTION");
+
+        case wxICON_EXCLAMATION:
+            return wxIcon("wxICON_WARNING");
+
+        default:
+            wxFAIL_MSG(_T("requested non existent standard icon"));
+            // still fall through
+
+        case wxICON_HAND:
+            return wxIcon("wxICON_ERROR");
+    }
 }