=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: user32/listbox: Disable LBS_NODATA if styles are incompatible with it.

Alexandre Julliard julliard at winehq.org
Fri Nov 16 14:38:19 CST 2018


Module: wine
Branch: master
Commit: afe443c3f27d62bd8c4f80fc2a9a632764552e18
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=afe443c3f27d62bd8c4f80fc2a9a632764552e18

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Thu Nov 15 11:46:16 2018 +0200

user32/listbox: Disable LBS_NODATA if styles are incompatible with it.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/listbox.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index f021029..2fcd735 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -2521,6 +2521,8 @@ static BOOL LISTBOX_Create( HWND hwnd, LPHEADCOMBO lphc )
     if (descr->style & LBS_EXTENDEDSEL) descr->style |= LBS_MULTIPLESEL;
     if (descr->style & LBS_MULTICOLUMN) descr->style &= ~LBS_OWNERDRAWVARIABLE;
     if (descr->style & LBS_OWNERDRAWVARIABLE) descr->style |= LBS_NOINTEGRALHEIGHT;
+    if ((descr->style & (LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_SORT)) != LBS_OWNERDRAWFIXED)
+        descr->style &= ~LBS_NODATA;
     descr->item_height = LISTBOX_SetFont( descr, 0 );
 
     if (descr->style & LBS_OWNERDRAWFIXED)




More information about the wine-cvs mailing list