comctl32: clean up listview resizing code

Daniel Jelinski djelinski1 at gmail.com
Fri Sep 28 17:40:35 CDT 2012


-------------- next part --------------
From d300a8c4c01c8a8e22b0defc3d2fbf7609ceb8d7 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sat, 29 Sep 2012 00:20:45 +0200
Subject: comctl32: clean up listview resizing code

The removed lines prevented the handler for WM_SIZE from detecting that
listview size actually changed.
This caused some issues with icons not being rearranged and LIST type listview
not being redrawn in some cases.
WM_SIZE handler calls the removed methods, so adverse side effects are not likely.
---
 dlls/comctl32/listview.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 7a11557..bf917f1 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -11619,9 +11619,6 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
       {
           if (notify_measureitem(infoPtr)) LISTVIEW_InvalidateList(infoPtr);
       }
-
-	  LISTVIEW_UpdateSize(infoPtr);
-	  LISTVIEW_UpdateScroll(infoPtr);
       }
       return DefWindowProcW(hwnd, uMsg, wParam, lParam);
 
-- 
1.7.5.4


More information about the wine-patches mailing list