fix background repainting under wxMSW (not sure this is the best way to do it - but it works)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-12-02 22:53:38 +00:00
parent fbf23d57e5
commit 3c5ab89b18

View File

@@ -184,6 +184,8 @@ public:
SetClientSize(bitmap.GetWidth(), bitmap.GetHeight());
UpdateStatusBar();
SetBackgroundColour(*wxWHITE);
}
void OnEraseBackground(wxEraseEvent& WXUNUSED(event))
@@ -194,6 +196,9 @@ public:
void OnPaint(wxPaintEvent& WXUNUSED(event))
{
wxPaintDC dc(this);
ClearBackground();
const wxSize size = GetClientSize();
dc.DrawBitmap(m_bitmap,
(size.x - m_bitmap.GetWidth())/2,