Windows must update the right edge (-1) of the last panel upon drawing
instead of relying on WM_SIZE.
This commit is contained in:
parent
19f83e2f6a
commit
8b5231df91
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue