Huw Davies : comctl32: Always send WM_CTLCOLORSTATIC during WM_ERASEBKGND.
Alexandre Julliard
julliard at winehq.org
Wed Mar 12 06:44:33 CDT 2008
Module: wine
Branch: master
Commit: f6603d9fcb9822920248759f637890f24abd11f3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6603d9fcb9822920248759f637890f24abd11f3
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Mar 12 11:07:25 2008 +0000
comctl32: Always send WM_CTLCOLORSTATIC during WM_ERASEBKGND.
---
dlls/comctl32/animate.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c
index 0b406b4..a567cb3 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));
More information about the wine-cvs
mailing list