Fixed activation/Focus message order problem when creating a new HWND.

This commit is contained in:
Paul Quinn 1998-11-30 13:37:54 +00:00 committed by Alexandre Julliard
parent eede6b044e
commit d8a541d1fc
1 changed files with 3 additions and 1 deletions

View File

@ -228,7 +228,9 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT32 msg, WPARAM32 wParam,
return (LOWORD(lParam) == HTCAPTION) ? MA_NOACTIVATE : MA_ACTIVATE;
case WM_ACTIVATE:
if (LOWORD(wParam) != WA_INACTIVE) SetFocus32( wndPtr->hwndSelf );
if (LOWORD(wParam) != WA_INACTIVE)
SetWindowPos32(wndPtr->hwndSelf, HWND_TOP, 0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE);
break;
case WM_ERASEBKGND: