adaptions for latest dc changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-11-30 16:40:30 +00:00
parent b7dbd50c89
commit 52018692fa

View File

@@ -1439,13 +1439,15 @@ void wxGDIPlusRenderer::Unload()
wxGraphicsContext * wxGDIPlusRenderer::CreateContext( const wxWindowDC& dc)
{
EnsureIsLoaded();
return new wxGDIPlusContext(this,(HDC) dc.GetHDC());
wxMSWDCImpl *msw = wxDynamicCast( dc.GetImpl() , wxMSWDCImpl );
return new wxGDIPlusContext(this,(HDC) msw->GetHDC());
}
wxGraphicsContext * wxGDIPlusRenderer::CreateContext( const wxMemoryDC& dc)
{
EnsureIsLoaded();
return new wxGDIPlusContext(this,(HDC) dc.GetHDC());
wxMSWDCImpl *msw = wxDynamicCast( dc.GetImpl() , wxMSWDCImpl );
return new wxGDIPlusContext(this,(HDC) msw->GetHDC());
}
wxGraphicsContext * wxGDIPlusRenderer::CreateMeasuringContext()