git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38792
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
theShape->AssignNewIds();
theShape->SetEventHandler(new MyEvtHandler(theShape, theShape, wxEmptyString));
theShape->SetCentreResize(false);
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);
}
theShape->SetSize(60, 60);
}
wxClientDC dc(shape->GetCanvas());
shape->GetCanvas()->PrepareDC(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);
shape->SetBrush(shapeBrush);
shapeBrush = oldBrush;
shape->Draw(dc);
wxClientDC dc(shape->GetCanvas());
shape->GetCanvas()->PrepareDC(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);
shape->SetBrush(shapeBrush);
shapeBrush = oldBrush;
shape->Draw(dc);