From 7ccd27a6d50a53fc7ef5f80c30459623ec6b5ea8 Mon Sep 17 00:00:00 2001
From: Sander van Leeuwen <sandervl@xs4all.nl>
Date: Fri, 4 Jan 2002 21:26:20 +0000
Subject: [PATCH] Check, Radio & 3State buttons send WM_CTLCOLORSTATIC instead
 of WM_CTLCOLORBTN.

---
 controls/button.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/controls/button.c b/controls/button.c
index 7e92dae461a..90bafbbfb93 100644
--- a/controls/button.c
+++ b/controls/button.c
@@ -803,9 +803,9 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
 
     if ((hFont = get_button_font( hwnd ))) SelectObject( hDC, hFont );
 
-    hBrush = SendMessageW( GetParent(hwnd), WM_CTLCOLORBTN, hDC, (LPARAM)hwnd );
+    hBrush = SendMessageW( GetParent(hwnd), WM_CTLCOLORSTATIC, hDC, (LPARAM)hwnd );
     if (!hBrush) /* did the app forget to call defwindowproc ? */
-        hBrush = DefWindowProcW( GetParent(hwnd), WM_CTLCOLORBTN, hDC, (LPARAM)hwnd );
+        hBrush = DefWindowProcW( GetParent(hwnd), WM_CTLCOLORSTATIC, hDC, (LPARAM)hwnd );
 
     if (style & BS_LEFTTEXT) 
     {
-- 
GitLab