Swap CalcToolbar and paint rectangle computation to the correct order.

This commit is contained in:
Marcus Meissner 2000-11-02 20:07:25 +00:00 committed by Alexandre Julliard
parent ebb2791164
commit c536a4a6d3
1 changed files with 2 additions and 1 deletions

View File

@ -3794,10 +3794,11 @@ TOOLBAR_Paint (HWND hwnd, WPARAM wParam)
TRACE("\n");
TOOLBAR_CalcToolbar( hwnd );
/* fill ps.rcPaint with a default rect */
memcpy(&(ps.rcPaint), &(infoPtr->rcBound), sizeof(infoPtr->rcBound));
TOOLBAR_CalcToolbar( hwnd );
hdc = wParam==0 ? BeginPaint(hwnd, &ps) : (HDC)wParam;
TOOLBAR_Refresh (hwnd, hdc, &ps);
if (!wParam) EndPaint (hwnd, &ps);