X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..a1f1afe4014f112b040ead117e9097b686c88caf:/samples/propsize/propsize.cpp?ds=inline diff --git a/samples/propsize/propsize.cpp b/samples/propsize/propsize.cpp index f1ec087e41..51610d2712 100644 --- a/samples/propsize/propsize.cpp +++ b/samples/propsize/propsize.cpp @@ -81,7 +81,7 @@ private: enum { // menu items - Minimal_Quit = 1, + Minimal_Quit = 1 }; // ---------------------------------------------------------------------------- @@ -114,6 +114,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("Proportional resize"), wxPoint(50, 50), wxSize(450, 340));