]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/helpview/helpview.cpp
Recalculate display (and scrollbars etc) before calling EnsureVisible()
[wxWidgets.git] / samples / html / helpview / helpview.cpp
index 238deea26a2f5b6d1628266571cd7ecde9fe8edf..ba4c62925decc493e010b3605e01d6f20ba1a9b3 100644 (file)
@@ -53,9 +53,6 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit()
 {
-    if ( !wxApp::OnInit() )
-        return false;
-
 #ifdef __WXMOTIF__
     delete wxLog::SetActiveTarget(new wxLogStderr); // So dialog boxes aren't used
 #endif
@@ -84,8 +81,6 @@ bool MyApp::OnInit()
 
     help -> DisplayContents();
 
-    SetTopWindow(help->GetFrame());
-
     return true;
 }