X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/749bfe9a6de1187def2b26c0cbbb249c1548c1ac..4e7b25f056b1c983eb35d3f71ba67da84a15be19:/samples/event/event.cpp diff --git a/samples/event/event.cpp b/samples/event/event.cpp index 5f1426e4ef..2b9c5850fb 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -17,13 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(__APPLE__) - // DO NOT use event.cpp here, it breaks statics initialization in - // src/common/event.cpp and nothing works at all then! - #pragma implementation "eventsample.cpp" - #pragma interface "eventsample.cpp" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -104,7 +97,7 @@ public: protected: // number of pushed event handlers - size_t m_nPush; + unsigned m_nPush; private: // any class wishing to process wxWidgets events must use this macro @@ -127,7 +120,7 @@ public: } private: - size_t m_level; + unsigned m_level; DECLARE_EVENT_TABLE() }; @@ -207,6 +200,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("Event wxWidgets Sample"), wxPoint(50, 50), wxSize(600, 340));