From 040c0c8376d1fe0919d54adbd8de3d65301778cc Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 6 Nov 2019 20:29:28 -0600 Subject: [PATCH] [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) -- 2.17.1