[PATCH] Fix for focus problem when sorting listview

James Hatheway james at macadamian.com
Fri Feb 16 07:56:16 CST 2001


Hi,

In my application, if I make some selections in a listview,
and then click on one of the headers to change the ordering
of the list, the selection doesn't follow the items to their
new positions.  This is because the selection list
(infoPtr->hdpaSelectionRanges) was not updated to reflect
the new positions of the items.  This patch fixes that.



Changelog:
  James Hatheway - james at macadamian.com
  Update selection after sorting (in LISTVIEW_SortItems)
  by making sure selection list matches states of individual
  items

Modified:
  dlls/comctl32/listview.c



--
James Hatheway
Software Designer - Macadamian Technologies, Inc.
james at macadamian.com ~ http://www.macadamian.com

  "Man könnte froh sein, wenn die Luft so rein wäre wie das Bier"
  "One could be happy if the air were as pure as the beer"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ListView_SelectionSort.diff
Type: application/octet-stream
Size: 1430 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20010216/16da6874/ListView_SelectionSort.obj


More information about the wine-patches mailing list