Restore focus to the current control without selecting text.
This commit is contained in:
parent
551ef36517
commit
247ab64d38
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue