Fixed WM_PAINT in ANIMATE_WindowProc; call DefWindowProcA for default handling.

This commit is contained in:
Andreas Mohr 2000-11-11 00:32:05 +00:00 committed by Alexandre Julliard
parent 5aee80f654
commit 3ef4f43c09
1 changed files with 6 additions and 5 deletions

View File

@ -882,7 +882,8 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
/* the animation isn't playing, don't paint */ /* the animation isn't playing, don't paint */
if(!infoPtr->uTimer && !infoPtr->hThread) if(!infoPtr->uTimer && !infoPtr->hThread)
break; /* default paint handling */
return DefWindowProcA(hWnd, uMsg, wParam, lParam);
if (GetWindowLongA(hWnd, GWL_STYLE) & ACS_TRANSPARENT) if (GetWindowLongA(hWnd, GWL_STYLE) & ACS_TRANSPARENT)
infoPtr->hbrushBG = SendMessageA(GetParent(hWnd), WM_CTLCOLORSTATIC, infoPtr->hbrushBG = SendMessageA(GetParent(hWnd), WM_CTLCOLORSTATIC,
@ -896,15 +897,15 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
} }
else else
{ {
PAINTSTRUCT ps; PAINTSTRUCT ps;
HDC hDC = BeginPaint(hWnd, &ps); HDC hDC = BeginPaint(hWnd, &ps);
EnterCriticalSection(&infoPtr->cs); EnterCriticalSection(&infoPtr->cs);
ANIMATE_PaintFrame(infoPtr, hDC); ANIMATE_PaintFrame(infoPtr, hDC);
LeaveCriticalSection(&infoPtr->cs); LeaveCriticalSection(&infoPtr->cs);
EndPaint(hWnd, &ps); EndPaint(hWnd, &ps);
} }
} }
break; break;