user32-ListBox_Size: Remove patch set.

Upstreamed by 57791a5b1a5429a31711f4cd746846d8fee4b798; omitted from the last rebase.
This commit is contained in:
Elizabeth Figura
2025-09-30 20:10:45 -05:00
parent 815194acd6
commit 1f7871a75c
2 changed files with 0 additions and 34 deletions

View File

@@ -1,33 +0,0 @@
From 0e6de4c3b7e4250772de4e350b03818e5edb04e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
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 <michael@fds-team.de>
---
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

View File

@@ -1 +0,0 @@
Fixes: [38142] Fix calculation of listbox size when horizontal scrollbar is present