From f7950d74e68fbc1518ee2439b24cb7820eb30070 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 27 Sep 2015 15:54:48 +0200 Subject: [PATCH] user32-ListBox_Size: Add missing file. --- ...lation-of-listbox-size-when-horizont.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 patches/user32-ListBox_Size/0001-user32-Fix-calculation-of-listbox-size-when-horizont.patch diff --git a/patches/user32-ListBox_Size/0001-user32-Fix-calculation-of-listbox-size-when-horizont.patch b/patches/user32-ListBox_Size/0001-user32-Fix-calculation-of-listbox-size-when-horizont.patch new file mode 100644 index 00000000..c33c7ce3 --- /dev/null +++ b/patches/user32-ListBox_Size/0001-user32-Fix-calculation-of-listbox-size-when-horizont.patch @@ -0,0 +1,33 @@ +From 0e6de4c3b7e4250772de4e350b03818e5edb04e4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Sun, 27 Sep 2015 03:30:43 +0200 +Subject: user32: Fix calculation of listbox size when horizontal scrollbar is + present. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Michael Müller +--- + dlls/user32/listbox.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c +index 2902ac9..c9ef17d 100644 +--- a/dlls/user32/listbox.c ++++ b/dlls/user32/listbox.c +@@ -356,8 +356,11 @@ static void LISTBOX_UpdatePage( LB_DESCR *descr ) + static void LISTBOX_UpdateSize( LB_DESCR *descr ) + { + RECT rect; ++ LONG style = GetWindowLongW( descr->self, GWL_STYLE ); + + GetClientRect( descr->self, &rect ); ++ if (style & WS_HSCROLL) ++ rect.bottom += GetSystemMetrics(SM_CYHSCROLL); + descr->width = rect.right - rect.left; + descr->height = rect.bottom - rect.top; + if (!(descr->style & LBS_NOINTEGRALHEIGHT) && !(descr->style & LBS_OWNERDRAWVARIABLE)) +-- +2.5.1 +