]> git.saurik.com Git - wxWidgets.git/commitdiff
Restore default WM_ERASEBKGND handling for wxMDIParentFrame.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jan 2010 17:57:52 +0000 (17:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jan 2010 17:57:52 +0000 (17:57 +0000)
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

index ad76a20f54d2e16b2a3d1691e06460ccdddd24fe..9bcee0a86a490debc6a81af0e4e2e4430b6ae44d 100644 (file)
@@ -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 )