// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(__APPLE__)
- #pragma implementation "erase.cpp"
- #pragma interface "erase.cpp"
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
MyFrame *frame = new MyFrame;
frame->Show(true);
m_bitmap = wxBitmap( wxICON(mondrian) );
new wxStaticBitmap( this, wxID_ANY, m_bitmap, wxPoint(80,20) );
-
+
SetFocusIgnoringChildren();
}
dc.SetPen(*wxGREEN_PEN);
PrepareDC( dc );
-
+
// clear any junk currently displayed
dc.Clear();