[PATCH] comctl32: Always paint static control background with WM_CTLCOLORSTATIC brush.

Jinoh Kang jinoh.kang.kr at gmail.com
Mon Mar 14 13:14:51 CDT 2022


Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>
---
 dlls/comctl32/static.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/static.c b/dlls/comctl32/static.c
index 7a3ac958111..3b79a650ed9 100644
--- a/dlls/comctl32/static.c
+++ b/dlls/comctl32/static.c
@@ -858,9 +858,9 @@ static void STATIC_PaintBitmapfn(HWND hwnd, HDC hdc, DWORD style )
                 SetBkColor(hdc, brush.lbColor);
         }
         GetClientRect(hwnd, &rcClient);
+        FillRect( hdc, &rcClient, hbrush );
         if (style & SS_CENTERIMAGE)
         {
-            FillRect( hdc, &rcClient, hbrush );
             rcClient.left = (rcClient.right - rcClient.left)/2 - bm.bmWidth/2;
             rcClient.top = (rcClient.bottom - rcClient.top)/2 - bm.bmHeight/2;
             rcClient.right = rcClient.left + bm.bmWidth;
-- 
2.34.1




More information about the wine-devel mailing list