comctl32 toolbar.c
Ge van Geldorp
ge at gse.nl
Thu Jan 22 13:35:47 CST 2004
Changelog:
Sync with ReactOS 0.2
Discard mouse button up events if no button is currently pressed
Index: dlls/comctl32/toolbar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/toolbar.c,v
retrieving revision 1.147
diff -u -r1.147 toolbar.c
--- dlls/comctl32/toolbar.c 26 Nov 2003 22:05:02 -0000 1.147
+++ dlls/comctl32/toolbar.c 22 Jan 2004 19:01:52 -0000
@@ -5042,6 +5042,7 @@
if((infoPtr->nHotItem >= 0) && (nHit != -1))
infoPtr->buttons[infoPtr->nHotItem].bHot = TRUE;
+ if (0 <= infoPtr->nButtonDown) {
btnPtr = &infoPtr->buttons[infoPtr->nButtonDown];
btnPtr->fsState &= ~TBSTATE_PRESSED;
@@ -5111,6 +5112,7 @@
nmmouse.dwItemData = btnPtr->dwData;
TOOLBAR_SendNotify ((NMHDR *) &nmmouse, infoPtr, NM_CLICK);
}
+ }
return 0;
}
More information about the wine-patches
mailing list