]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/splash/splash.cpp
get rid of \\ macros and change See Also -> See also
[wxWidgets.git] / samples / splash / splash.cpp
index d842e0a28224f088791f9f8dffc7479788ce6b14..4791c1f4c03474f156c690fc4ce0e2d8bc3f9b55 100644 (file)
@@ -118,19 +118,19 @@ bool MyApp::OnInit()
 {
     wxImage::AddHandler(new wxPNGHandler);
 
+    // create the main application window
+    MyFrame *frame = new MyFrame(_T("wxSplashScreen sample application"));
+
     wxBitmap bitmap;
     if (bitmap.LoadFile(_T("splash.png"), wxBITMAP_TYPE_PNG))
     {
         new wxSplashScreen(bitmap,
             wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
-            6000, NULL, wxID_ANY, wxDefaultPosition, wxDefaultSize,
+            6000, frame, wxID_ANY, wxDefaultPosition, wxDefaultSize,
             wxSIMPLE_BORDER|wxSTAY_ON_TOP);
     }
     wxYield();
 
-    // create the main application window
-    MyFrame *frame = new MyFrame(_T("wxSplashScreen sample application"));
-
     // and show it (the frames, unlike simple controls, are not shown when
     // created initially)
     frame->Show(true);