[WIN32SS] Store the scrollbar theming enabled flag in the scrollbar

This ensure we do not rely on usermode for always passing this flag in,
which is a ReactOS specific flag.
Thanks to Doug Lyons for finding the source of the problem.
CORE-17780
This commit is contained in:
Mark Jansen 2022-02-16 18:41:43 +01:00
parent 7bfc35c366
commit fd28a69de6
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -528,6 +528,11 @@ co_IntSetScrollInfo(PWND Window, INT nBar, LPCSCROLLINFO lpsi, BOOL bRedraw)
Info = IntGetScrollInfoFromWindow(Window, nBar); Info = IntGetScrollInfoFromWindow(Window, nBar);
pSBData = IntGetSBData(Window, nBar); pSBData = IntGetSBData(Window, nBar);
if (lpsi->fMask & SIF_THEMED && !(Info->fMask & SIF_THEMED))
{
Info->fMask |= SIF_THEMED;
}
/* Set the page size */ /* Set the page size */
if (lpsi->fMask & SIF_PAGE) if (lpsi->fMask & SIF_PAGE)
{ {
@ -660,7 +665,7 @@ co_IntSetScrollInfo(PWND Window, INT nBar, LPCSCROLLINFO lpsi, BOOL bRedraw)
return lpsi->fMask & SIF_PREVIOUSPOS ? OldPos : pSBData->pos; /* SetWindowPos() already did the painting */ return lpsi->fMask & SIF_PREVIOUSPOS ? OldPos : pSBData->pos; /* SetWindowPos() already did the painting */
if (bRedraw) if (bRedraw)
{ {
if (!(lpsi->fMask & SIF_THEMED)) /* Not Using Themes */ if (!(Info->fMask & SIF_THEMED)) /* Not Using Themes */
{ {
TRACE("Not using themes.\n"); TRACE("Not using themes.\n");
if (action & SA_SSI_REPAINT_ARROWS) if (action & SA_SSI_REPAINT_ARROWS)