]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
added std icons to wxMGL
[wxWidgets.git] / src / msw / listctrl.cpp
index 63eb8ffba08c76b8aa18b5ef1f51c48f702f913e..5b030dd30474ab0fb83dec8d430df7b5d117c7eb 100644 (file)
@@ -1928,10 +1928,14 @@ void wxListCtrl::RefreshItem(long item)
 
 void wxListCtrl::RefreshItems(long itemFrom, long itemTo)
 {
-    for ( long item = itemFrom; item <= itemTo; item++ )
-    {
-        RefreshItem(item);
-    }
+    wxRect rect1, rect2;
+    GetItemRect(itemFrom, rect1);
+    GetItemRect(itemTo, rect2);
+
+    wxRect rect = rect1;
+    rect.height = rect2.GetBottom() - rect1.GetTop();
+
+    RefreshRect(rect);
 }
 
 // ----------------------------------------------------------------------------