https://git.reactos.org/?p=reactos.git;a=commitdiff;h=040c0c8376d1fe0919d54adbd8de3d65301778cc

commit 040c0c8376d1fe0919d54adbd8de3d65301778cc
Author:     James Tabor <[email protected]>
AuthorDate: Wed Nov 6 20:29:28 2019 -0600
Commit:     James Tabor <[email protected]>
CommitDate: Wed Nov 6 20:29:28 2019 -0600

    [ComCtl32] Properly handle WM_CTLCOLOR* messages.
    
    Patch by Fabian Maurer : Properly handle WM_CTLCOLOR* messages.
    
    See CORE-15560 and
    
https://source.winehq.org/git/wine.git/?a=commit;h=1dc3ec2cdc83da0c1cab96f2dc61b2c917fd1e29
    .
---
 dll/win32/comctl32/combo.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dll/win32/comctl32/combo.c b/dll/win32/comctl32/combo.c
index abbe3950902..25502f8a74a 100644
--- a/dll/win32/comctl32/combo.c
+++ b/dll/win32/comctl32/combo.c
@@ -1964,6 +1964,16 @@ static LRESULT CALLBACK COMBO_WindowProc( HWND hwnd, 
UINT message, WPARAM wParam
         if (GET_WHEEL_DELTA_WPARAM(wParam) < 0) return SendMessageW(hwnd, 
WM_KEYDOWN, VK_DOWN, 0);
         return TRUE;
 
+    case WM_CTLCOLOR:
+    case WM_CTLCOLORMSGBOX:
+    case WM_CTLCOLOREDIT:
+    case WM_CTLCOLORLISTBOX:
+    case WM_CTLCOLORBTN:
+    case WM_CTLCOLORDLG:
+    case WM_CTLCOLORSCROLLBAR:
+    case WM_CTLCOLORSTATIC:
+        return SendMessageW(lphc->owner, message, wParam, lParam);
+
     /* Combo messages */
     case CB_ADDSTRING:
         if (lphc->dwStyle & CBS_LOWERCASE)

Reply via email to