Mikołaj Zalewski : comctl32: header: Update the rects in HEADER_Refresh if needed.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 1 06:48:33 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: baea6498ddcf618cccac9a962450fe56f99c0f59
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=baea6498ddcf618cccac9a962450fe56f99c0f59
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Wed May 31 16:38:21 2006 +0200
comctl32: header: Update the rects in HEADER_Refresh if needed.
---
dlls/comctl32/header.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index b00adc2..493df6f 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -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);
More information about the wine-cvs
mailing list