Zhiyi Zhang : comctl32/combo: Invalidate child edit control after painting themed background.
Alexandre Julliard
julliard at winehq.org
Tue Oct 19 16:07:47 CDT 2021
Module: wine
Branch: master
Commit: 8018f95a831e9b165fb1df94ae475faa88f7aa88
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8018f95a831e9b165fb1df94ae475faa88f7aa88
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Tue Oct 19 10:40:41 2021 +0800
comctl32/combo: Invalidate child edit control after painting themed background.
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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
}
More information about the wine-cvs
mailing list