comctl32: toolbar: Don't try to redraw buttons outside of the clipping rect.

This commit is contained in:
Mikołaj Zalewski 2006-10-14 19:53:39 +02:00 committed by Alexandre Julliard
parent 992310e4be
commit d929cec671

View File

@ -1111,6 +1111,8 @@ TOOLBAR_Refresh (HWND hwnd, HDC hdc, PAINTSTRUCT* ps)
for (i = 0; i < infoPtr->nNumButtons; i++, btnPtr++)
{
BOOL bDraw;
if (!RectVisible(hdc, &btnPtr->rect))
continue;
if (infoPtr->dwExStyle & TBSTYLE_EX_HIDECLIPPEDBUTTONS)
{
IntersectRect(&rcTemp, &rcClient, &btnPtr->rect);