Commit 1b0f95d7 authored by Michael Müller's avatar Michael Müller Committed by Vitaly Lipatov

user32: Fix calculation of listbox size when horizontal scrollbar is present.

parent 8d817f7c
......@@ -479,8 +479,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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment