From c536a4a6d3550b8da26082dab2d21597c45bd7df Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 2 Nov 2000 20:07:25 +0000 Subject: [PATCH] Swap CalcToolbar and paint rectangle computation to the correct order. --- dlls/comctl32/toolbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 483958ba5bf..9436ef06ff2 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -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); -- 2.11.4.GIT