mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[0.4.11][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 commit9dbe886e3f
Thanks to patches author Akihiro Sagawa <sagawa.aki@gmail.com> Fix picked from 0.4.13-dev-1169-g841732e45c
This was no regression, but I could not resist porting it back, because it's just too tempting to fix a bug by deleting code. Win-win!
This commit is contained in:
parent
c4d930d20c
commit
a8b598214b
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_ACCEL);
|
||||||
KillTimer (infoPtr->Self, TIMER_AUTOPRESS);
|
KillTimer (infoPtr->Self, TIMER_AUTOPRESS);
|
||||||
|
|
||||||
if (GetCapture() == infoPtr->Self) {
|
if (GetCapture() == infoPtr->Self)
|
||||||
NMHDR hdr;
|
ReleaseCapture();
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
infoPtr->Flags &= ~FLAG_PRESSED;
|
infoPtr->Flags &= ~FLAG_PRESSED;
|
||||||
InvalidateRect (infoPtr->Self, NULL, FALSE);
|
InvalidateRect (infoPtr->Self, NULL, FALSE);
|
||||||
|
|
Loading…
Reference in a new issue