#define wxSPLASH_TIMER_ID 9999
+IMPLEMENT_DYNAMIC_CLASS(wxSplashScreen, wxFrame);
+
BEGIN_EVENT_TABLE(wxSplashScreen, wxFrame)
EVT_TIMER(wxSPLASH_TIMER_ID, wxSplashScreen::OnNotify)
EVT_CLOSE(wxSplashScreen::OnCloseWindow)
Show(TRUE);
m_window->SetFocus();
- wxYield(); // Without this, you see a blank screen for an instant
+#ifdef __WXMSW__
+ Update(); // Without this, you see a blank screen for an instant
+#else
+ wxYieldIfNeeded(); // Should eliminate this
+#endif
}
wxSplashScreen::~wxSplashScreen()