X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/162d656dfc147d70a0584e822570e236052f3e16..f4f5d5697dc5e34a5582061dbd857d1cd4326f91:/samples/docview/docview.cpp diff --git a/samples/docview/docview.cpp b/samples/docview/docview.cpp index 7b2e3e1528..3a2f1a5582 100644 --- a/samples/docview/docview.cpp +++ b/samples/docview/docview.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation "docview.h" -#endif - /* * Purpose: Document/view architecture demo for wxWidgets class library * Run with no arguments for multiple top-level windows, -single @@ -59,6 +55,9 @@ MyApp::MyApp(void) bool MyApp::OnInit(void) { + if ( !wxApp::OnInit() ) + return false; + //// Find out if we're: //// multiple window: multiple windows, each view in a separate frame //// single window: one view (within the main frame) and one document at a time, as in Windows Write.