mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 17:41:23 +00:00
[User32]
- Fix wine sync, Notify parent after capture is released, see CORE-10194. svn path=/trunk/; revision=69249
This commit is contained in:
parent
e50245329b
commit
f21871fbb8
1 changed files with 5 additions and 1 deletions
|
@ -398,6 +398,8 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
|
||||||
break;
|
break;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case WM_LBUTTONUP:
|
case WM_LBUTTONUP:
|
||||||
|
{
|
||||||
|
BOOL TellParent = FALSE; //// ReactOS see note below.
|
||||||
state = get_button_state( hWnd );
|
state = get_button_state( hWnd );
|
||||||
if (!(state & BUTTON_BTNPRESSED)) break;
|
if (!(state & BUTTON_BTNPRESSED)) break;
|
||||||
state &= BUTTON_NSTATES;
|
state &= BUTTON_NSTATES;
|
||||||
|
@ -425,9 +427,11 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
|
||||||
(state & BST_INDETERMINATE) ? 0 : ((state & 3) + 1), 0 );
|
(state & BST_INDETERMINATE) ? 0 : ((state & 3) + 1), 0 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
|
TellParent = TRUE; // <---- Fix CORE-10194, Notify parent after capture is released.
|
||||||
}
|
}
|
||||||
ReleaseCapture();
|
ReleaseCapture();
|
||||||
|
if (TellParent) BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_CAPTURECHANGED:
|
case WM_CAPTURECHANGED:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue