From d7763d16d749d7de79f5c7256433298d6cb29ce4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 10 Feb 2013 16:13:50 +0000 Subject: [PATCH] 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 --- src/msw/toolbar.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.50.0