]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/animate/anitest.cpp
improved wxImage documentation.
[wxWidgets.git] / samples / animate / anitest.cpp
index 13d00db097422149d7e8c28e893313b24df41c02..e2500c0fc55aed7376021d691b0fe3e6f9ed0d2f 100644 (file)
@@ -102,8 +102,6 @@ bool MyApp::OnInit()
                                  wxDEFAULT_FRAME_STYLE);
     frame->Show(true);
 
-    SetTopWindow(frame);
-
     return true;
 }
 
@@ -295,7 +293,7 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
         m_animationCtrl->Play();
     #else
         wxFileInputStream stream(filename);
-        if (!stream.Ok())
+        if (!stream.IsOk())
         {
             wxLogError(wxT("Sorry, this animation is not a valid format for wxAnimation."));
             return;