Fixed a behavior of the focus when a parent window is disabled.

oldstable
Francis Beaudet 1999-05-29 14:10:02 +00:00 committed by Alexandre Julliard
parent 0f44fb362d
commit 21d50f8ded
1 changed files with 1 additions and 1 deletions

View File

@ -1721,7 +1721,7 @@ BOOL WINAPI EnableWindow( HWND hwnd, BOOL enable )
if( wndPtr->flags & WIN_NATIVE )
wndPtr->pDriver->pSetHostAttr( wndPtr, HAK_ACCEPTFOCUS, FALSE );
if ((hwnd == GetFocus()) || IsChild( hwnd, GetFocus() ))
if (hwnd == GetFocus())
{
SetFocus( 0 ); /* A disabled window can't have the focus */
}