X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b18eb01cd1eec13d5b4b31992c535b25c9f5db6d..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/samples/erase/erase.cpp?ds=sidebyside diff --git a/samples/erase/erase.cpp b/samples/erase/erase.cpp index 8a00632083..f3b752b666 100644 --- a/samples/erase/erase.cpp +++ b/samples/erase/erase.cpp @@ -18,8 +18,8 @@ // ---------------------------------------------------------------------------- #if defined(__GNUG__) && !defined(__APPLE__) - #pragma implementation "erase.cpp" - #pragma interface "erase.cpp" + #pragma implementation + #pragma interface #endif // For compilers that support precompilation, includes "wx/wx.h". @@ -213,7 +213,7 @@ MyCanvas::MyCanvas( wxFrame *parent ) m_bitmap = wxBitmap( wxICON(mondrian) ); new wxStaticBitmap( this, wxID_ANY, m_bitmap, wxPoint(80,20) ); - + SetFocusIgnoringChildren(); } @@ -341,7 +341,7 @@ void MyCanvas::OnEraseBackground( wxEraseEvent& event ) dc.SetPen(*wxGREEN_PEN); PrepareDC( dc ); - + // clear any junk currently displayed dc.Clear();