Do not send WM_MOUSEACTIVATE for children of desktop.

This commit is contained in:
Gerard Patel 2001-04-17 17:57:20 +00:00 committed by Alexandre Julliard
parent 71c6984901
commit 7a06d45fca
2 changed files with 1 additions and 5 deletions

View File

@ -2952,8 +2952,6 @@ static LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
return LISTBOX_HandleHScroll( wnd, descr, wParam );
case WM_VSCROLL:
return LISTBOX_HandleVScroll( wnd, descr, wParam );
case WM_MOUSEACTIVATE:
return MA_NOACTIVATE;
case WM_MOUSEWHEEL:
if (wParam & (MK_SHIFT | MK_CONTROL))
return unicode ? DefWindowProcW( hwnd, msg, wParam, lParam ) :
@ -3178,8 +3176,6 @@ static LRESULT WINAPI ComboLBWndProc_locked( WND* wnd, UINT msg,
return LISTBOX_HandleLButtonDownCombo(wnd, descr, msg, wParam,
(INT16)LOWORD(lParam),
(INT16)HIWORD(lParam) );
case WM_MOUSEACTIVATE:
return MA_NOACTIVATE;
case WM_NCACTIVATE:
return FALSE;
case WM_KEYDOWN:

View File

@ -316,7 +316,7 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
/* Activate the window if needed */
if (hWnd != GetActiveWindow() && hWnd != GetDesktopWindow())
if (hWnd != GetActiveWindow() && hwndTop != GetDesktopWindow())
{
LONG ret = SendMessageA( hWnd, WM_MOUSEACTIVATE, hwndTop,
MAKELONG( hittest, message ) );