set the background brush to the window's background colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,10 +92,11 @@ void wxShapeCanvas::OnPaint(wxPaintEvent& event)
|
|||||||
|
|
||||||
PrepareDC(dc);
|
PrepareDC(dc);
|
||||||
|
|
||||||
|
dc.SetBackground(wxBrush(GetBackgroundColour(), wxSOLID));
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
|
|
||||||
if (GetDiagram())
|
if (GetDiagram())
|
||||||
GetDiagram()->Redraw(dc);
|
GetDiagram()->Redraw(dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event)
|
void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event)
|
||||||
|
Reference in New Issue
Block a user