Commit 9dbe886e authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

comctl32/updown: Suppress the NM_RELEASEDCAPTURE notification.

parent 5555044a
......@@ -949,7 +949,7 @@ static void test_updown_pos_notifications(void)
expect(result, 0);
ok_sequence(sequences, PARENT_SEQ_INDEX, test_updown_pos_notifications_seq,
"test updown to parent notify (vertical)", TRUE);
"test updown to parent notify (vertical)", FALSE);
DestroyWindow(updown);
......@@ -968,7 +968,7 @@ static void test_updown_pos_notifications(void)
expect(result, 0);
ok_sequence(sequences, PARENT_SEQ_INDEX, test_updown_pos_notifications_horz_seq,
"test updown to parent notify (horizontal)", TRUE);
"test updown to parent notify (horizontal)", FALSE);
DestroyWindow(updown);
}
......
......@@ -783,14 +783,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);
if (GetCapture() == infoPtr->Self)
ReleaseCapture();
}
infoPtr->Flags &= ~FLAG_PRESSED;
InvalidateRect (infoPtr->Self, NULL, FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment