- Reduced tab offset constant slightly to avoid clipping the label.

- Prevent label overdraw of updown control by reducing the width of
  the invalidated region.
This commit is contained in:
Mike Hearn 2003-03-12 20:14:12 +00:00 committed by Alexandre Julliard
parent baf0a064db
commit c6914b202a
1 changed files with 10 additions and 3 deletions

View File

@ -79,7 +79,7 @@ typedef struct
/******************************************************************************
* Positioning constants
*/
#define SELECTED_TAB_OFFSET 2
#define SELECTED_TAB_OFFSET 1
#define HORIZONTAL_ITEM_PADDING 6
#define VERTICAL_ITEM_PADDING 3
#define ROUND_CORNER_SIZE 2
@ -2313,7 +2313,7 @@ static void TAB_InvalidateTabArea(
HWND hwnd,
TAB_INFO* infoPtr)
{
RECT clientRect;
RECT clientRect, r;
DWORD lStyle = GetWindowLongA(hwnd, GWL_STYLE);
INT lastRow = infoPtr->uNumRows - 1;
@ -2348,9 +2348,16 @@ static void TAB_InvalidateTabArea(
((lStyle & TCS_BUTTONS) ? lastRow * BUTTON_SPACINGY : 0) + 2;
}
/* Punch out the updown control */
if (infoPtr->needsScrolling && (clientRect.right > 0)) {
GetClientRect(infoPtr->hwndUpDown, &r);
clientRect.right = clientRect.right - (r.right - r.left);
}
TRACE("invalidate (%ld,%ld)-(%ld,%ld)\n",
clientRect.left,clientRect.top,
clientRect.right,clientRect.bottom);
InvalidateRect(hwnd, &clientRect, TRUE);
}