[PATCH] comctl32/combo: Invalidate child edit control after painting themed background.

Zhiyi Zhang zzhang at codeweavers.com
Mon Oct 18 21:40:41 CDT 2021


Fix the edit control in a themed combo control not displaying text when
clicking the combo control dropdown button.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 dlls/comctl32/combo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/comctl32/combo.c b/dlls/comctl32/combo.c
index 074f54f0937..4208ff8b9c9 100644
--- a/dlls/comctl32/combo.c
+++ b/dlls/comctl32/combo.c
@@ -789,6 +789,8 @@ static LRESULT COMBO_ThemedPaint(HTHEME theme, HEADCOMBO *lphc, HDC hdc)
 
     if ((lphc->dwStyle & CBS_DROPDOWNLIST) == CBS_DROPDOWNLIST)
         CBPaintText(lphc, hdc);
+    else
+        InvalidateRect(lphc->hWndEdit, NULL, TRUE);
 
     return 0;
 }
-- 
2.32.0



More information about the wine-devel mailing list