Serge Ivanov

Returning DLGC_WANTALLKEYS for multiline edit control was not good because
it breaks navigation in dialogs.
This commit is contained in:
Alexandre Julliard 2000-05-30 20:50:09 +00:00
parent 4dce07ea94
commit d566a0e309
1 changed files with 7 additions and 3 deletions

View File

@ -720,9 +720,13 @@ LRESULT WINAPI EditWndProc( HWND hwnd, UINT msg,
case WM_GETDLGCODE:
DPRINTF_EDIT_MSG32("WM_GETDLGCODE");
result = (es->style & ES_MULTILINE) ?
DLGC_WANTALLKEYS | DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS :
DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS;
result = DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS;
if (wnd->dwStyle & ES_WANTRETURN)
{
LPMSG msg = (LPMSG)lParam;
if (msg && (msg->message == WM_KEYDOWN) && (msg->wParam == VK_RETURN))
result |= DLGC_WANTMESSAGE;
}
break;
case WM_CHAR: