X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2612a310cbce1ce88643c8d78c144713b1a26b34..f4f5d5697dc5e34a5582061dbd857d1cd4326f91:/samples/minifram/minifram.cpp?ds=sidebyside diff --git a/samples/minifram/minifram.cpp b/samples/minifram/minifram.cpp index 9964b07b33..4b01ac159f 100644 --- a/samples/minifram/minifram.cpp +++ b/samples/minifram/minifram.cpp @@ -57,6 +57,9 @@ wxButton *button = (wxButton*) NULL; // main frame bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // Create the main frame window main_frame = new MyMainFrame((wxFrame *) NULL, wxID_ANY, _T("wxFrame sample"), wxPoint(100, 100), wxSize(300, 200));