Right-click in a listview
François Gouget
fgouget at codeweavers.com
Sun Feb 11 13:36:10 CST 2001
Right-clicking on a selected item in a listview should not dselect
all the other items.
Changelog;
François Gouget <fgouget at codeweavers.com>
* dlls/comctl32/listview.c
Don't dselect all other items if right-clicking on a selected item
Set the focus on the item being right-clicked
--
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/cvs/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.93
diff -u -r1.93 listview.c
--- dlls/comctl32/listview.c 2001/01/22 19:27:43 1.93
+++ dlls/comctl32/listview.c 2001/02/11 18:55:44
@@ -8625,7 +8545,9 @@
nItem = LISTVIEW_MouseSelection(hwnd, ptPosition);
if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr)))
{
- if (!((wKey & MK_SHIFT) || (wKey & MK_CONTROL)))
+ LISTVIEW_SetItemFocus(hwnd,nItem);
+ if (!((wKey & MK_SHIFT) || (wKey & MK_CONTROL)) &&
+ !LISTVIEW_IsSelected(hwnd,nItem))
{
LISTVIEW_SetSelection(hwnd, nItem);
}
More information about the wine-patches
mailing list