Do not process WM_LBUTTONUP message in ButtonWndProc()
when the mouse is not captured.
This commit is contained in:
parent
86b686fb8c
commit
be7a9d16ea
|
@ -143,6 +143,8 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
|
|||
break;
|
||||
|
||||
case WM_LBUTTONUP:
|
||||
/* FIXME: real windows uses extra flags in the status for this */
|
||||
if (GetCapture() != hWnd) break;
|
||||
ReleaseCapture();
|
||||
if (!(infoPtr->state & BUTTON_HIGHLIGHTED)) break;
|
||||
SendMessageA( hWnd, BM_SETSTATE, FALSE, 0 );
|
||||
|
|
Loading…
Reference in New Issue