Deprecate wxDC::{Begin,End}Drawing()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4079,14 +4079,11 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc)
|
||||
|
||||
dc.SetHDC(hdc);
|
||||
dc.SetWindow((wxWindow *)this);
|
||||
dc.BeginDrawing();
|
||||
|
||||
wxEraseEvent event(m_windowId, &dc);
|
||||
event.SetEventObject(this);
|
||||
bool rc = GetEventHandler()->ProcessEvent(event);
|
||||
|
||||
dc.EndDrawing();
|
||||
|
||||
// must be called manually as ~wxDC doesn't do anything for wxDCTemp
|
||||
dc.SelectOldObjects(hdc);
|
||||
|
||||
|
Reference in New Issue
Block a user