Windows must update the right edge (-1) of the last panel upon drawing

instead of relying on WM_SIZE.
This commit is contained in:
Aric Stewart 2000-06-08 19:22:25 +00:00 committed by Alexandre Julliard
parent 19f83e2f6a
commit 8b5231df91
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,9 @@ DEFAULT_DEBUG_CHANNEL(statusbar)
#define STATUSBAR_GetInfoPtr(hwnd) ((STATUSWINDOWINFO *)GetWindowLongA (hwnd, 0))
/* prototype */
static void
STATUSBAR_SetPartBounds (HWND hwnd);
static void
STATUSBAR_DrawSizeGrip (HDC hdc, LPRECT lpRect)
@ -174,6 +177,8 @@ STATUSBAR_Refresh (HWND hwnd, HDC hdc)
if (!IsWindowVisible(hwnd))
return (TRUE);
STATUSBAR_SetPartBounds(hwnd);
GetClientRect (hwnd, &rect);
if (infoPtr->clrBk != CLR_DEFAULT)