commit | be7a9d16ea3fa4840b8959de45a64686014618dc | [log] [tgz] |
---|---|---|
author | Rein Klazes <rklazes@casema.net> | Sat Jun 05 08:54:27 1999 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sat Jun 05 08:54:27 1999 +0000 |
tree | f619c2a2369ed9b79cf11302384e509df2e57cc5 | |
parent | 86b686fb8c679da18f58bb46744313c9d693d189 [diff] |
Do not process WM_LBUTTONUP message in ButtonWndProc() when the mouse is not captured.
diff --git a/controls/button.c b/controls/button.c index 9b49d85..aa8f0f7 100644 --- a/controls/button.c +++ b/controls/button.c
@@ -143,6 +143,8 @@ 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 );