[patch] Listview scrolling for multiple selections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Holding shift while paging through a listview does not scroll the window.  
This patch ensures that the newly selected item will always be visible no 
matter what type of selection we do.  Dimitrie, feel free to veto it if it 
should be done differently.

Relative to Dimitrie's M9 patch.

Changelog:
  Paul Rupe <prupe@myrealbox.com>
  Scroll the listview when doing multiple selections
  

-- 
Paul Rupe   <prupe@myrealbox.com>                "She smiled, in the end."

| Oppose government police-ware on your PC!
| Stop the Consumer Broadband and Digital Television Promotion Act!
| <http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html>
--- listview.c.exp	Tue Oct  8 22:56:07 2002
+++ listview.c	Tue Oct  8 23:06:16 2002
@@ -2396,7 +2396,6 @@
     {
       bResult = TRUE;
       LISTVIEW_SetSelection(infoPtr, nItem);
-      ListView_EnsureVisible(infoPtr->hwndSelf, nItem, FALSE);
     }
     else
     {
@@ -2413,9 +2412,9 @@
       {
         bResult = TRUE;
         LISTVIEW_SetSelection(infoPtr, nItem);
-        ListView_EnsureVisible(infoPtr->hwndSelf, nItem, FALSE);
       }
     }
+    ListView_EnsureVisible(infoPtr->hwndSelf, nItem, FALSE);
   }
 
   UpdateWindow(infoPtr->hwndSelf); /* update client area */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux