https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fd28a69de63f1a801384e3...
commit fd28a69de63f1a801384e3d6c5675189aa82455e Author: Mark Jansen mark.jansen@reactos.org AuthorDate: Wed Feb 16 18:41:43 2022 +0100 Commit: Mark Jansen mark.jansen@reactos.org CommitDate: Wed Feb 16 18:43:32 2022 +0100
[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 --- win32ss/user/ntuser/scrollbar.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/scrollbar.c b/win32ss/user/ntuser/scrollbar.c index e4e0ba436af..9d5e4005dcb 100644 --- a/win32ss/user/ntuser/scrollbar.c +++ b/win32ss/user/ntuser/scrollbar.c @@ -528,6 +528,11 @@ co_IntSetScrollInfo(PWND Window, INT nBar, LPCSCROLLINFO lpsi, BOOL bRedraw) Info = IntGetScrollInfoFromWindow(Window, nBar); pSBData = IntGetSBData(Window, nBar);
+ if (lpsi->fMask & SIF_THEMED && !(Info->fMask & SIF_THEMED)) + { + Info->fMask |= SIF_THEMED; + } + /* Set the page size */ 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 */ if (bRedraw) { - if (!(lpsi->fMask & SIF_THEMED)) /* Not Using Themes */ + if (!(Info->fMask & SIF_THEMED)) /* Not Using Themes */ { TRACE("Not using themes.\n"); if (action & SA_SSI_REPAINT_ARROWS)