]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toolbar.cpp
Propagate the event handling fixes to wxVarScrollHelperBase.
[wxWidgets.git] / src / msw / toolbar.cpp
index 1011c5d3e271528a21dc3e723b260ddfbad4af3d..c292bb77de06b529c24b93406989fe6208ffbf51 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Julian Smart
 // Modified by:
 // Created:     04/01/98
-// RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -1949,6 +1948,10 @@ WXLRESULT wxToolBar::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam
                 return 0;
             break;
 #endif // wxHAS_MSW_BACKGROUND_ERASE_HOOK
+
+        case WM_PRINTCLIENT:
+            wxFillRect(GetHwnd(), (HDC)wParam, MSWGetToolbarBgBrush());
+            return 1;
     }
 
     return wxControl::MSWWindowProc(nMsg, wParam, lParam);