]> git.saurik.com Git - wxWidgets.git/commitdiff
call wxApp::OnInit() from MyApp::OnInit() so that standard options (like wxUniv ...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Jun 2006 13:47:45 +0000 (13:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Jun 2006 13:47:45 +0000 (13:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/minimal/minimal.cpp

index b9403d34695d9fc09ab4c6d24f33b7c800eca823..3bfad6019d4b34a83736943080d9114fde283adb 100644 (file)
@@ -119,6 +119,11 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    // call the base class initialization method, currently it only parses a
+    // few common command-line options but it could be do more in the future
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create the main application window
     MyFrame *frame = new MyFrame(_T("Minimal wxWidgets App"));