From 137f41d126aea79132c2841ec6aa02747e5f2ced Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 3 Nov 2003 22:15:59 +0000 Subject: [PATCH] WM_LBUTTONDOWN calls SetFocus under Windows. Remove the SetFocus in WM_MOUSEACTIVATE. --- controls/edit.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/controls/edit.c b/controls/edit.c index 9370807b3b1..d1f02e25824 100644 --- a/controls/edit.c +++ b/controls/edit.c @@ -890,13 +890,6 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, break; case WM_MOUSEACTIVATE: - /* - * FIXME: maybe DefWindowProc() screws up, but it seems that - * modeless dialog boxes need this. If we don't do this, the focus - * will _not_ be set by DefWindowProc() for edit controls in a - * modeless dialog box ??? - */ - SetFocus(hwnd); result = MA_ACTIVATE; break; @@ -4242,6 +4235,7 @@ static LRESULT EDIT_WM_LButtonDown(EDITSTATE *es, DWORD keys, INT x, INT y) INT e; BOOL after_wrap; + SetFocus(es->hwndSelf); if (!(es->flags & EF_FOCUSED)) return 0;