X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbf311dd178ed36045f40bb6f485c100a5b28700..a1f1afe4014f112b040ead117e9097b686c88caf:/samples/propsize/propsize.cpp diff --git a/samples/propsize/propsize.cpp b/samples/propsize/propsize.cpp index c217cba597..51610d2712 100644 --- a/samples/propsize/propsize.cpp +++ b/samples/propsize/propsize.cpp @@ -16,10 +16,6 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma implementation "propsize.cpp" - #pragma interface "propsize.cpp" -#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));