X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf46511d2caa2b6a7cde5f6cc58ae125db3ccf9b..30738aae14dfbce0c492d8696c861947228028c2:/samples/animate/anitest.cpp diff --git a/samples/animate/anitest.cpp b/samples/animate/anitest.cpp index 73bc017306..7ffc31712b 100644 --- a/samples/animate/anitest.cpp +++ b/samples/animate/anitest.cpp @@ -90,6 +90,9 @@ END_EVENT_TABLE() // Initialise this in OnInit, not statically bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // Create the main frame window MyFrame* frame = new MyFrame((wxFrame *)NULL, wxID_ANY, _T("Animation Demo"),