X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83661a1347733ddad2a7c264f920658e3095ff13..06b781c7c630ff8c2ab30211cb4351b4cb5bfb47:/samples/dragimag/dragimag.cpp?ds=sidebyside diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index 7be138f0c1..fd7d182c44 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -83,7 +83,6 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) PrepareDC( dc ); DrawShapes(dc); - } void MyCanvas::OnEraseBackground(wxEraseEvent& event) @@ -320,7 +319,6 @@ DragShape* MyCanvas::FindShape(const wxPoint& pt) const } // MyFrame - IMPLEMENT_DYNAMIC_CLASS( MyFrame, wxFrame ) BEGIN_EVENT_TABLE(MyFrame,wxFrame) @@ -387,7 +385,6 @@ bool MyApp::OnInit() m_background = image.ConvertToBitmap(); } - MyFrame *frame = new MyFrame(); wxString rootName("shape0"); @@ -434,6 +431,11 @@ bool MyApp::OnInit() return TRUE; } +int MyApp::OnExit() +{ + return 0; +} + bool MyApp::TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap) { int w = bitmap.GetWidth();