Commit 030dbe2d authored by Phil Krylov's avatar Phil Krylov Committed by Alexandre Julliard

Draw header control items only within the header client area.

parent b6b180a1
...@@ -385,7 +385,7 @@ HEADER_Refresh (HWND hwnd, HDC hdc) ...@@ -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);
} }
......
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