Draw header control items only within the header client area.

This commit is contained in:
Phil Krylov 2005-08-25 19:18:14 +00:00 committed by Alexandre Julliard
parent b6b180a16d
commit 030dbe2d98
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ HEADER_Refresh (HWND hwnd, HDC hdc)
} }
x = rect.left; x = rect.left;
for (i = 0; i < infoPtr->uNumItem; i++) { for (i = 0; x <= rect.right && i < infoPtr->uNumItem; i++) {
x = HEADER_DrawItem (hwnd, hdc, HEADER_OrderToIndex(hwnd,i), x = HEADER_DrawItem (hwnd, hdc, HEADER_OrderToIndex(hwnd,i),
infoPtr->iHotItem == i); infoPtr->iHotItem == i);
} }