[PATCH resend 4/8] user32/listbox: Clear LBS_OWNERDRAWVARIABLE if LBS_OWNERDRAWFIXED is set
Gabriel Ivăncescu
gabrielopcode at gmail.com
Mon Nov 5 05:17:22 CST 2018
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/user32/listbox.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index 529a47b..02bb923 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -2528,6 +2528,9 @@ static BOOL LISTBOX_Create( HWND hwnd, LPHEADCOMBO lphc )
if (descr->style & LBS_OWNERDRAWFIXED)
{
+ /* Windows accepts both, but FIXED overrides VARIABLE */
+ descr->style &= ~LBS_OWNERDRAWVARIABLE;
+
if( descr->lphc && (descr->lphc->dwStyle & CBS_DROPDOWN))
{
/* WinWord gets VERY unhappy if we send WM_MEASUREITEM from here */
--
2.19.1
More information about the wine-devel
mailing list