void MyCanvas::DoPaint(wxDC& dc)
{
+ PrepareDC(dc);
+
if ( m_eraseBgInPaint )
{
dc.SetBackground(*wxLIGHT_GREY);
if ( m_useBuffer )
{
wxAutoBufferedPaintDC dc(this);
- PrepareDC(dc);
-
DoPaint(dc);
}
else
{
wxPaintDC dc(this);
- PrepareDC(dc);
-
DoPaint(dc);
}
}