mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[COMCTL32] Updown Suppress the NM_RELEASEDCAPTURE notification CORE-14365
This fixes a strange toggle-back-effect in 'Zeckensacks Glide Wrapper 0.84c'
by importing Wine commit
9dbe886e3f
Thanks to patches author Akihiro Sagawa <sagawa.aki@gmail.com>
This commit is contained in:
parent
b9a2eee2f3
commit
841732e45c
1 changed files with 2 additions and 8 deletions
|
@ -781,14 +781,8 @@ static BOOL UPDOWN_CancelMode (UPDOWN_INFO *infoPtr)
|
|||
KillTimer (infoPtr->Self, TIMER_ACCEL);
|
||||
KillTimer (infoPtr->Self, TIMER_AUTOPRESS);
|
||||
|
||||
if (GetCapture() == infoPtr->Self) {
|
||||
NMHDR hdr;
|
||||
hdr.hwndFrom = infoPtr->Self;
|
||||
hdr.idFrom = GetWindowLongPtrW (infoPtr->Self, GWLP_ID);
|
||||
hdr.code = NM_RELEASEDCAPTURE;
|
||||
SendMessageW(infoPtr->Notify, WM_NOTIFY, hdr.idFrom, (LPARAM)&hdr);
|
||||
ReleaseCapture();
|
||||
}
|
||||
if (GetCapture() == infoPtr->Self)
|
||||
ReleaseCapture();
|
||||
|
||||
infoPtr->Flags &= ~FLAG_PRESSED;
|
||||
InvalidateRect (infoPtr->Self, NULL, FALSE);
|
||||
|
|
Loading…
Reference in a new issue