// MyFrame
-const int ID_QUIT = 108;
+const int ID_QUIT = wxID_EXIT;
const int ID_FULL = 109;
-const int ID_ABOUT = 110;
+const int ID_ABOUT = wxID_ABOUT;
IMPLEMENT_DYNAMIC_CLASS( MyFrame, wxFrame )
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
wxFrame *frame = new MyFrame();
frame->Show( true );