wxClientDC dc(this);
wxGetApp().TileBitmap(rect, dc, wxGetApp().GetBackgroundBitmap());
}
-#if wxUSE_DC_CACHEING
- wxDC::ClearCache();
-#endif
}
else
event.Skip(); // The official way of doing it
shape->Draw(dc);
node = node->Next();
}
-#if wxUSE_DC_CACHEING
- wxDC::ClearCache();
-#endif
}
void MyCanvas::EraseShape(DragShape* shape, wxDC& dc)
wxImage::AddHandler( new wxPNGHandler );
#endif
- // The DC cache is an efficiency measure to be used
- // when a lot of masked blitting is done
-#if wxUSE_DC_CACHEING
- wxDC::EnableCache(TRUE);
-#endif
-
wxImage image;
if (image.LoadFile("backgrnd.png", wxBITMAP_TYPE_PNG))
{
int MyApp::OnExit()
{
-#if wxUSE_DC_CACHEING
- wxDC::ClearCache();
-#endif
return 0;
}