X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/277956850e9abb6488b902c4779c02337b07eb61..508d12b2242e0d96c6fb5dc7d9c3ea2aac553603:/samples/keyboard/keyboard.cpp diff --git a/samples/keyboard/keyboard.cpp b/samples/keyboard/keyboard.cpp index 813b93da6e..b922d4dc3e 100644 --- a/samples/keyboard/keyboard.cpp +++ b/samples/keyboard/keyboard.cpp @@ -240,6 +240,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("Keyboard wxWidgets App"), wxPoint(50, 50), wxSize(450, 340));