-void wxOverlay::Init( wxWindowDC* dc, int x , int y , int width , int height )
+void wxOverlay::Init( wxDC* dc, int x , int y , int width , int height )
{
m_impl->Init(dc, x, y, width, height);
}
{
m_impl->Init(dc, x, y, width, height);
}
-wxDCOverlay::wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc, int x , int y , int width , int height) :
+wxDCOverlay::wxDCOverlay(wxOverlay &overlay, wxDC *dc, int x , int y , int width , int height) :
m_overlay(overlay)
{
Init(dc, x, y, width, height);
}
m_overlay(overlay)
{
Init(dc, x, y, width, height);
}
-void wxDCOverlay::Init(wxWindowDC *dc, int x , int y , int width , int height )
+void wxDCOverlay::Init(wxDC *dc, int x , int y , int width , int height )
// generic implementation of wxOverlayImpl
// ----------------------------------------------------------------------------
// generic implementation of wxOverlayImpl
// ----------------------------------------------------------------------------
-void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height )
+void wxOverlayImpl::Init( wxDC* dc, int x , int y , int width , int height )
wxMemoryDC dcMem ;
m_bmpSaved.Create( width, height );
dcMem.SelectObject( m_bmpSaved );
wxMemoryDC dcMem ;
m_bmpSaved.Create( width, height );
dcMem.SelectObject( m_bmpSaved );
dcMem.Blit(0, 0, m_width, m_height,
dc, x, y);
dcMem.SelectObject( wxNullBitmap );
}
dcMem.Blit(0, 0, m_width, m_height,
dc, x, y);
dcMem.SelectObject( wxNullBitmap );
}