WM_LBUTTONDOWN calls SetFocus under Windows. Remove the SetFocus in

WM_MOUSEACTIVATE.
This commit is contained in:
Huw Davies 2003-11-03 22:15:59 +00:00 committed by Alexandre Julliard
parent f94159cdb2
commit 137f41d126
1 changed files with 1 additions and 7 deletions

View File

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