http://bugs.winehq.org/show_bug.cgi?id=2004
Summary: Bug In LVM_GETNEXTITEM(hWnd, -1, LVNI_FOCUSED | LVNI_SELECTED) Product: Wine Version: CVS Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-gui AssignedTo: wine-bugs@winehq.org ReportedBy: R.J.Shearman@warwick.ac.uk
When LVM_GETNEXTITEM(hWnd, -1, LVNI_FOCUSED | LVNI_SELECTED) is sent to the ListView common control it should get the currently selected item if one is selected or return -1. However, after at least one item has been clicked on then the builtin version of ListView always returns the last selected item regardless of if one is currently selected. A good test program is Wine's RegEdit. Simply right-click on a value in the right-hand pane and then right-click on empty space. It should bring up the menu with options to create new keys and values. However, it instead brings it the menu with options like rename and delete as if you had right-clicked on a value.