theShape->AssignNewIds();
theShape->SetEventHandler(new MyEvtHandler(theShape, theShape, wxEmptyString));
theShape->SetCentreResize(false);
- theShape->SetPen(wxBLACK_PEN);
- theShape->SetBrush(wxCYAN_BRUSH);
+ theShape->SetPen(*wxBLACK_PEN);
+ theShape->SetBrush(*wxCYAN_BRUSH);
theShape->SetSize(60, 60);
}
wxClientDC dc(shape->GetCanvas());
shape->GetCanvas()->PrepareDC(dc);
- wxBrush *oldBrush = shape->GetBrush();
+ const wxBrush *oldBrush = shape->GetBrush();
shape->SetBrush(shapeBrush);
shapeBrush = oldBrush;
shape->Draw(dc);
wxClientDC dc(shape->GetCanvas());
shape->GetCanvas()->PrepareDC(dc);
- wxBrush *oldBrush = shape->GetBrush();
+ const wxBrush *oldBrush = shape->GetBrush();
shape->SetBrush(shapeBrush);
shapeBrush = oldBrush;
shape->Draw(dc);