Commit ac3e8164 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Set clipping region to client window in LISTBOX_Paint.

parent ed923a57
......@@ -924,6 +924,16 @@ static LRESULT LISTBOX_Paint( WND *wnd, LB_DESCR *descr, HDC hdc )
rect.right += descr->horz_pos;
}
if (IS_OWNERDRAW(descr))
{
RECT r;
HRGN hrgn;
GetClientRect(wnd->hwndSelf, &r);
hrgn = CreateRectRgnIndirect(&r);
SelectClipRgn( hdc, hrgn);
DeleteObject( hrgn );
}
if (descr->font) oldFont = SelectObject( hdc, descr->font );
hbrush = SendMessageA( descr->owner, WM_CTLCOLORLISTBOX,
hdc, (LPARAM)wnd->hwndSelf );
......
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