Remove calls to dc.BeginDrawing and dc.EndDrawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
63811cf00a
commit
830f23c593
@ -1706,7 +1706,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event)
|
||||
{
|
||||
wxLogTrace(wxT(""),wxT("repainting activex win"));
|
||||
wxPaintDC dc(this);
|
||||
dc.BeginDrawing();
|
||||
int w, h;
|
||||
GetSize(&w, &h);
|
||||
RECT posRect;
|
||||
@ -1731,7 +1730,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event)
|
||||
dc.DrawRectangle(0, 0, w, h);
|
||||
dc.SetBrush(wxNullBrush);
|
||||
}
|
||||
dc.EndDrawing();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user