X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..35bb3cb155917b4287fb2a3841bea22919a3d499:/samples/html/helpview/helpview.cpp?ds=inline diff --git a/samples/html/helpview/helpview.cpp b/samples/html/helpview/helpview.cpp index ba4c62925d..238deea26a 100644 --- a/samples/html/helpview/helpview.cpp +++ b/samples/html/helpview/helpview.cpp @@ -53,6 +53,9 @@ 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 @@ -81,6 +84,8 @@ bool MyApp::OnInit() help -> DisplayContents(); + SetTopWindow(help->GetFrame()); + return true; }