PrepareDC( dc );
DrawShapes(dc);
-
}
void MyCanvas::OnEraseBackground(wxEraseEvent& event)
}
// MyFrame
-
IMPLEMENT_DYNAMIC_CLASS( MyFrame, wxFrame )
BEGIN_EVENT_TABLE(MyFrame,wxFrame)
m_background = image.ConvertToBitmap();
}
-
MyFrame *frame = new MyFrame();
wxString rootName("shape0");
return TRUE;
}
+int MyApp::OnExit()
+{
+ return 0;
+}
+
bool MyApp::TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap)
{
int w = bitmap.GetWidth();