]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toolbar.cpp
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / msw / toolbar.cpp
index 7eaea5ca0fb3817774432d851b5d8222348de8f3..8052cec705067fa96b8e57513fba22de61201981 100644 (file)
@@ -1695,7 +1695,9 @@ void wxToolBar::OnMouseEvent(wxMouseEvent& event)
 // toolbar icons with comctl32.dll < 6.0.
 void wxToolBar::OnEraseBackground(wxEraseEvent& event)
 {
+#ifdef wxHAS_MSW_BACKGROUND_ERASE_HOOK
     MSWDoEraseBackground(event.GetDC()->GetHDC());
+#endif // wxHAS_MSW_BACKGROUND_ERASE_HOOK
 }
 
 bool wxToolBar::HandleSize(WXWPARAM WXUNUSED(wParam), WXLPARAM lParam)