Restore focus to the current control without selecting text.

This commit is contained in:
Vitaliy Margolen 2005-10-20 11:36:55 +00:00 committed by Alexandre Julliard
parent 551ef36517
commit 247ab64d38

View File

@ -104,7 +104,7 @@ static void DEFDLG_RestoreFocus( HWND hwnd )
infoPtr->hwndFocus = GetNextDlgTabItem( hwnd, 0, FALSE );
if (!IsWindow( infoPtr->hwndFocus )) return;
}
DEFDLG_SetFocus( hwnd, infoPtr->hwndFocus );
SetFocus( infoPtr->hwndFocus );
/* This used to set infoPtr->hwndFocus to NULL for no apparent reason,
sometimes losing focus when receiving WM_SETFOCUS messages. */