Do not set focus to a disabled window.

This commit is contained in:
Adrian Thurston 1999-10-24 17:23:52 +00:00 committed by Alexandre Julliard
parent f2d99ee56a
commit 73a26fa4da
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ HWND WINAPI SetFocus( HWND hwnd )
hwndTop = wndPtr->hwndSelf;
}
/* definitely at the top window now */
if ( wndPtr->dwStyle & ( WS_MINIMIZE | WS_DISABLED) ) goto CLEANUP;
/* Retrieve the message queue associated with this window */
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
if ( !pMsgQ )