From f6603d9fcb9822920248759f637890f24abd11f3 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 12 Mar 2008 11:07:25 +0000 Subject: [PATCH] comctl32: Always send WM_CTLCOLORSTATIC during WM_ERASEBKGND. --- dlls/comctl32/animate.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c index 0b406b45b1e..a567cb34858 100644 --- a/dlls/comctl32/animate.c +++ b/dlls/comctl32/animate.c @@ -856,14 +856,10 @@ static LRESULT ANIMATE_Destroy(ANIMATE_INFO *infoPtr) static BOOL ANIMATE_EraseBackground(ANIMATE_INFO const *infoPtr, HDC hdc) { RECT rect; - HBRUSH hBrush = 0; - - if(infoPtr->dwStyle & ACS_TRANSPARENT) - { - hBrush = (HBRUSH)SendMessageW(infoPtr->hwndNotify, WM_CTLCOLORSTATIC, - (WPARAM)hdc, (LPARAM)infoPtr->hwndSelf); - } + HBRUSH hBrush; + hBrush = (HBRUSH)SendMessageW(infoPtr->hwndNotify, WM_CTLCOLORSTATIC, + (WPARAM)hdc, (LPARAM)infoPtr->hwndSelf); GetClientRect(infoPtr->hwndSelf, &rect); FillRect(hdc, &rect, hBrush ? hBrush : GetCurrentObject(hdc, OBJ_BRUSH));