[PATCH 2/2] comctl32/combo: Draw comboboxes with correct background

Fabian Maurer dark.shadow4 at web.de
Fri Sep 20 16:45:33 CDT 2019


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46417
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 dlls/comctl32/combo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/comctl32/combo.c b/dlls/comctl32/combo.c
index 8a52a0bdc0..492e21616e 100644
--- a/dlls/comctl32/combo.c
+++ b/dlls/comctl32/combo.c
@@ -1861,6 +1861,9 @@ static LRESULT CALLBACK COMBO_WindowProc( HWND hwnd, UINT message, WPARAM wParam
             return SendMessageW(lphc->hWndEdit, message, wParam, lParam);
         else return  CB_ERR;

+    case WM_CTLCOLORSTATIC:
+    case WM_CTLCOLOREDIT:
+        return (LRESULT)GetSysColorBrush(COLOR_WINDOW);
     case WM_DRAWITEM:
     case WM_DELETEITEM:
     case WM_COMPAREITEM:
--
2.23.0




More information about the wine-devel mailing list