X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfbf301d7cd079bf5d25b3c10a8f0980c397724c..e960c20e389061c0db09e03fdaf9ffe3a418779b:/samples/menu/menu.cpp?ds=sidebyside diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index be55ff793c..97c563ab96 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -344,6 +344,9 @@ IMPLEMENT_APP(MyApp) // main frame bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // Create the main frame window MyFrame* frame = new MyFrame;