From: Vadim Zeitlin Date: Sun, 10 Feb 2013 16:13:50 +0000 (+0000) Subject: Compilation fix for !wxHAS_MSW_BACKGROUND_ERASE_HOOK case. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d7763d16d749d7de79f5c7256433298d6cb29ce4?ds=inline Compilation fix for !wxHAS_MSW_BACKGROUND_ERASE_HOOK case. This doesn't actually change anything as wxHAS_MSW_BACKGROUND_ERASE_HOOK is always defined, except under WinCE where this file is not used anyhow, but do test it here for completeness. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)