comctl32: listview: Prevent DragDetect from removing WM_LBUTTONUP messages.
This commit is contained in:
parent
d7794170e7
commit
5f9b0db217
|
@ -3321,7 +3321,18 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
|
|||
if (!(fwKeys & MK_LBUTTON))
|
||||
infoPtr->bLButtonDown = FALSE;
|
||||
|
||||
if (infoPtr->bLButtonDown && DragDetect(infoPtr->hwndSelf, infoPtr->ptClickPos))
|
||||
if (infoPtr->bLButtonDown)
|
||||
{
|
||||
MSG msg;
|
||||
BOOL skip = FALSE;
|
||||
/* Check to see if we got a WM_LBUTTONUP, and skip the DragDetect.
|
||||
* Otherwise, DragDetect will eat it.
|
||||
*/
|
||||
if (PeekMessageW(&msg, 0, WM_MOUSEFIRST, WM_MOUSELAST, PM_NOREMOVE))
|
||||
if (msg.message == WM_LBUTTONUP)
|
||||
skip = TRUE;
|
||||
|
||||
if (!skip && DragDetect(infoPtr->hwndSelf, infoPtr->ptClickPos))
|
||||
{
|
||||
LVHITTESTINFO lvHitTestInfo;
|
||||
NMLISTVIEW nmlv;
|
||||
|
@ -3337,6 +3348,7 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
|
|||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
infoPtr->bLButtonDown = FALSE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue