comctl32: toolbar: recalc the toolbar after a TB_SETIMAGELIST (fixes bug #6668)

Mikołaj Zalewski mikolaj at zalewski.pl
Sat Jan 13 16:51:24 CST 2007


-------------- next part --------------
From 3d003d3acaba4da806656165fbf28978d4a1a8ff Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Miko=C5=82aj_Zalewski?= <mikolaj at zalewski.pl>
Date: Sat, 13 Jan 2007 22:34:01 +0100
Subject: [PATCH] comctl32: toolbar: recalc the toolbar after a TB_SETIMAGELIST (fixes bug #6668)

---
 dlls/comctl32/toolbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index bda17e9..85ada79 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -4910,6 +4910,7 @@ TOOLBAR_SetImageList (HWND hwnd, WPARAM wParam, LPARAM lParam)
         infoPtr->nBitmapHeight = 1;
     }
     infoPtr->nVBitmapHeight = infoPtr->nBitmapHeight;
+    TOOLBAR_CalcToolbar(hwnd);
 
     TRACE("hwnd %p, new himl=%p, id = %d, count=%d, bitmap w=%d, h=%d\n",
 	  hwnd, infoPtr->himlDef, id, infoPtr->nNumBitmaps,
-- 
1.4.4.2


More information about the wine-patches mailing list