X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9765f671563f5691fb1bdfaea49fa5542b970f27..1fd850ab550a30bc600d5a10c5aed5386bf3624b:/src/msw/toolbar.cpp diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index 7eaea5ca0f..8052cec705 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -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)