comctl32: toolbar: Don't try to redraw buttons outside of the clipping rect.
This commit is contained in:
parent
992310e4be
commit
d929cec671
@ -1111,6 +1111,8 @@ TOOLBAR_Refresh (HWND hwnd, HDC hdc, PAINTSTRUCT* ps)
|
|||||||
for (i = 0; i < infoPtr->nNumButtons; i++, btnPtr++)
|
for (i = 0; i < infoPtr->nNumButtons; i++, btnPtr++)
|
||||||
{
|
{
|
||||||
BOOL bDraw;
|
BOOL bDraw;
|
||||||
|
if (!RectVisible(hdc, &btnPtr->rect))
|
||||||
|
continue;
|
||||||
if (infoPtr->dwExStyle & TBSTYLE_EX_HIDECLIPPEDBUTTONS)
|
if (infoPtr->dwExStyle & TBSTYLE_EX_HIDECLIPPEDBUTTONS)
|
||||||
{
|
{
|
||||||
IntersectRect(&rcTemp, &rcClient, &btnPtr->rect);
|
IntersectRect(&rcTemp, &rcClient, &btnPtr->rect);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user