X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..4e7b25f056b1c983eb35d3f71ba67da84a15be19:/samples/event/event.cpp diff --git a/samples/event/event.cpp b/samples/event/event.cpp index 4e9dc8798c..2b9c5850fb 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -97,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 @@ -120,7 +120,7 @@ public: } private: - size_t m_level; + unsigned m_level; DECLARE_EVENT_TABLE() }; @@ -200,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));