Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ShapeFrame::OnPaint(wxPaintEvent& event)
- {
- wxPaintDC dc(this);
- wxGraphicsContext *gc = wxGraphicsContext::Create(dc);
- wxGraphicsMatrix trans = gc->CreateMatrix();
- setTransform(&trans);
- ShapeData *data = wxGetApp().getData();
- for(int i=0; i<data->getNumShapes(); i++)
- {
- data->getShape(i)->draw(dc, &trans);
- }
- delete gc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement