From 12148be28d2b14b27313bf7e26b218ff7d27194a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Feb 2005 20:43:27 +0000 Subject: [PATCH] don't suppress default erase background logic, we do have to paint bg somewhere git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlwin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 089483b2da..c89834231e 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -848,8 +848,13 @@ void wxHtmlWindow::OnCellMouseHover(wxHtmlCell * WXUNUSED(cell), // do nothing here } -void wxHtmlWindow::OnEraseBackground(wxEraseEvent& WXUNUSED(event)) +void wxHtmlWindow::OnEraseBackground(wxEraseEvent& event) { + // we do have to erase background now that we reuse it (instead of + // overwriting it) in OnPaint() below, but maybe we should set some flag if + // we get here as this would mean that user code doesn't paint background + // itself and then we wouldn't have to copy old bits to dcm below... + event.Skip(); } void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event)) -- 2.45.2