adaptions for latest dc changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-11-30 16:46:19 +00:00
parent 196fc5f288
commit 0290aeac57

View File

@@ -1123,8 +1123,9 @@ void wxActiveXContainer::OnPaint(wxPaintEvent& WXUNUSED(event))
::InvalidateRect(m_oleObjectHWND, NULL, false);
#endif
RECTL *prcBounds = (RECTL *) &posRect;
wxMSWDCImpl *msw = wxDynamicCast( dc.GetImpl() , wxMSWDCImpl );
m_viewObject->Draw(DVASPECT_CONTENT, -1, NULL, NULL, NULL,
(HDC)dc.GetHDC(), prcBounds, NULL, NULL, 0);
(HDC)msw->GetHDC(), prcBounds, NULL, NULL, 0);
}
}