X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2dcd83af916c2f606a6c4bf63f9f8fdf13de1921..69a05ef6d65a4450f9e929a22bbf96ddcde916f3:/samples/statbar/statbar.cpp diff --git a/samples/statbar/statbar.cpp b/samples/statbar/statbar.cpp index 06ad57c3b3..8915cd4c40 100644 --- a/samples/statbar/statbar.cpp +++ b/samples/statbar/statbar.cpp @@ -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));