Mike McCormack : comctl32: Arrange the listview after deleting all items so we will place icons at the top again .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 15 07:12:18 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: f86270a02259dfd74f825f14d5898294b6c57357
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=f86270a02259dfd74f825f14d5898294b6c57357

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Jun 15 16:05:48 2006 +0900

comctl32: Arrange the listview after deleting all items so we will place icons at the top again.

---

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

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index ee1f8d2..9adf764 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -4294,8 +4294,8 @@ static BOOL LISTVIEW_DeleteAllItems(LIST
 	infoPtr->nItemCount --;
     }
     
+    LISTVIEW_Arrange(infoPtr, LVA_DEFAULT);
     LISTVIEW_UpdateScroll(infoPtr);
-
     LISTVIEW_InvalidateList(infoPtr);
     
     return TRUE;




More information about the wine-cvs mailing list