From 4f42c05a1a956878cb6ef28c9faabbf801361e6d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Jan 2010 17:57:52 +0000 Subject: [PATCH] Restore default WM_ERASEBKGND handling for wxMDIParentFrame. We pretended that we erased the background ourselves but actually we did not. Just let DefWindowProc() do whatever it does by default to fix the problem with wrong toolbar background colour since r62971. Also removed the unused and unneeded WM_SIZE handler as well. Closes #11607. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/mdi.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index ad76a20f54..9bcee0a86a 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -574,19 +574,6 @@ WXLRESULT wxMDIParentFrame::MSWWindowProc(WXUINT message, processed = true; break; - - case WM_ERASEBKGND: - processed = true; - - // we erase background ourselves - rc = true; - break; - - case WM_SIZE: - // though we don't (usually) resize the MDI client to exactly fit - // the client area we need to pass this one to DefFrameProc to - // allow the children to show - break; } if ( !processed ) -- 2.45.2