Draw header control items only within the header client area.
This commit is contained in:
parent
b6b180a16d
commit
030dbe2d98
|
@ -385,7 +385,7 @@ HEADER_Refresh (HWND hwnd, HDC hdc)
|
|||
}
|
||||
|
||||
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),
|
||||
infoPtr->iHotItem == i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue