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
}
private:
- size_t m_level;
+ unsigned m_level;
DECLARE_EVENT_TABLE()
};
// '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));