X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b143cf708ba5e419de4c3d0b03640eedb6b926d1..4e7b25f056b1c983eb35d3f71ba67da84a15be19:/samples/event/event.cpp?ds=sidebyside diff --git a/samples/event/event.cpp b/samples/event/event.cpp index a0647391ae..2b9c5850fb 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -200,6 +200,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("Event wxWidgets Sample"), wxPoint(50, 50), wxSize(600, 340));