]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/statbar/statbar.cpp
call OnInit() from all samples to allow using standard command line options with...
[wxWidgets.git] / samples / statbar / statbar.cpp
index 06ad57c3b30ae3729e8fb3c2f2cb205346ddff5b..8915cd4c40c199cb5f4ad8f819ac847ede0cad6d 100644 (file)
@@ -267,6 +267,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create the main application window
     MyFrame *frame = new MyFrame(_T("wxStatusBar sample"),
                                  wxPoint(50, 50), wxSize(450, 340));