X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11fdee427ee7c2aae0fda8655b30791f084a45ab..4871d34290873072ca2783074d4779ba5ecb2052:/samples/propsize/propsize.cpp diff --git a/samples/propsize/propsize.cpp b/samples/propsize/propsize.cpp index 2cf73c7018..51610d2712 100644 --- a/samples/propsize/propsize.cpp +++ b/samples/propsize/propsize.cpp @@ -16,10 +16,6 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma implementation - #pragma interface -#endif // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -85,7 +81,7 @@ private: enum { // menu items - Minimal_Quit = 1, + Minimal_Quit = 1 }; // ---------------------------------------------------------------------------- @@ -118,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));