WS_POPUP windows (excluding the WS_POPUPWINDOW windows) should be

closed after loosing the focus.
This commit is contained in:
Noomen Hamza 1999-09-23 11:42:16 +00:00 committed by Alexandre Julliard
parent 3d696d93de
commit fcc24ff431
1 changed files with 7 additions and 0 deletions

View File

@ -737,7 +737,14 @@ static void EVENT_FocusOut( HWND hWnd, XFocusChangeEvent *event )
if (event->detail != NotifyPointer)
if (hWnd == GetForegroundWindow())
{
WND *pWnd = WIN_FindWndPtr(hWnd);
if( ((pWnd->dwStyle & WS_POPUP) == WS_POPUP) &&
((pWnd->dwStyle & WS_POPUPWINDOW) != WS_POPUPWINDOW) )
SendMessageA(hWnd, WM_CLOSE, 0, 0 );
else
SendMessageA( hWnd, WM_CANCELMODE, 0, 0 );
WIN_ReleaseWndPtr(pWnd);
SetForegroundWindow( 0 );
}
}