Do not process WM_LBUTTONUP message in ButtonWndProc()

when the mouse is not captured.
This commit is contained in:
Rein Klazes 1999-06-05 08:54:27 +00:00 committed by Alexandre Julliard
parent 86b686fb8c
commit be7a9d16ea
1 changed files with 2 additions and 0 deletions

View File

@ -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 );