comctl32: header: Update the rects in HEADER_Refresh if needed.

This commit is contained in:
Mikołaj Zalewski 2006-05-31 16:38:21 +02:00 committed by Alexandre Julliard
parent 02ca30e8f9
commit baea6498dd
1 changed files with 3 additions and 0 deletions

View File

@ -539,6 +539,9 @@ HEADER_Refresh (HWND hwnd, HDC hdc)
INT x;
HTHEME theme = GetWindowTheme (hwnd);
if (!infoPtr->bRectsValid)
HEADER_SetItemBounds(hwnd);
/* get rect for the bar, adjusted for the border */
GetClientRect (hwnd, &rect);